Skip to content
Snippets Groups Projects
Commit ce8807d1 authored by DarkGod's avatar DarkGod
Browse files

A few sanity paranoid code checks

parent 0ef13cea
No related branches found
No related tags found
No related merge requests found
......@@ -245,7 +245,7 @@ end
--- Remove the actor from the level, marking it as dead but not using the death functions
function _M:disappear(src)
if game.level:hasEntity(self) then game.level:removeEntity(self) end
if game.level and game.level:hasEntity(self) then game.level:removeEntity(self) end
self.dead = true
self.changed = true
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment