Solarus-Games English Forum

Solarus => Bugs & Feature requests => Topic started by: wizard_wizzle (aka ZeldaHistorian) on July 06, 2015, 04:41:33 AM

Title: Segmentation fault?
Post by: wizard_wizzle (aka ZeldaHistorian) on July 06, 2015, 04:41:33 AM
I have a new bug that's popped up in my game, and I'm not sure if it's an engine problem or something else. I have the following code in one of my dungeons, and when it gets to this point in the game, it crashes with a Segmentation Fault:

for enemy in map:get_entities("keese") do
  enemy.on_dead = function()
    if not map:has_entities("keese_rupees") and not game:get_value("b1119") then
      chest_rupees:set_enabled(true)
      bridge_rupees:set_enabled(true)
      sol.audio.play_sound("chest_appears")
    end
  end
end


I haven't changed anything with this code recently, and the fault would've just started appearing in Solarus 1.4.2. Any ideas?
Title: Re: Segmentation fault?
Post by: Christopho on July 06, 2015, 11:04:13 AM
A segmentation fault is most likely a bug in the engine. Can you report it on github, as well as the data so that I can reproduce it? Thanks