diff --git a/game/engines/default/engine/Actor.lua b/game/engines/default/engine/Actor.lua index 27da330d2ee7eb80da15419b08250d71d3fe5b0a..3d0a5d2ac656428508583a27d980cc32331130c3 100644 --- a/game/engines/default/engine/Actor.lua +++ b/game/engines/default/engine/Actor.lua @@ -152,6 +152,7 @@ end function _M:move(x, y, force) if not x or not y then return end if self.dead then return true end + if not game.level then return end local map = game.level.map x = math.floor(x)