From d2b2da3edda7af7da4139df199cb98c79b066472 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Tue, 6 Sep 2011 23:03:35 +0000 Subject: [PATCH] fix git-svn-id: http://svn.net-core.org/repos/t-engine4@4345 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/engines/default/engine/Actor.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/game/engines/default/engine/Actor.lua b/game/engines/default/engine/Actor.lua index 27da330d2e..3d0a5d2ac6 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) -- GitLab