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?
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