Crash with entity:remove()
I have a problem when removing an entity. When it happens, solarus crashes (in a window it says that solarus stopped running) and the file error.txt is not created. To reproduce the bug, in the script of a custom entity, write:
local entity=... function entity:on_created() local hx,hy,hz = self:get_map():get_hero():get_position() local other = self:get_map():create_custom_entity({direction=0,layer=hz,x=hx,y=hy}) other:remove() end