module Light_Bitcore def self.bugfix(key) return unless @@buffer.keys.include?(key) return unless @@buffer[key].disposed? @@buffer[key] = nil @@buffer[key] = Cache.light(key) end end class Light_SSource alias ka_light_effects_bug_fix_initialize initialize def initialize(char,bitmap,opacity,plus,hs) Light_Bitcore.bugfix(bitmap) ka_light_effects_bug_fix_initialize(char,bitmap,opacity,plus,hs) end end