From 1c801ebfa0e7a998f390314a50f98c72b0dc26b3 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Fri, 28 Dec 2012 01:12:43 +0000 Subject: [PATCH] Fix git-svn-id: http://svn.net-core.org/repos/t-engine4@6261 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/engines/default/engine/interface/ActorAI.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/engines/default/engine/interface/ActorAI.lua b/game/engines/default/engine/interface/ActorAI.lua index 7d8fec7d33..7674630430 100644 --- a/game/engines/default/engine/interface/ActorAI.lua +++ b/game/engines/default/engine/interface/ActorAI.lua @@ -75,7 +75,7 @@ end --- Move one step to the given target if possible -- This tries the most direct route, if not available it checks sides and always tries to get closer function _M:moveDirection(x, y, force) - if not self.x or not self.y then return false end + if not self.x or not self.y or not x or not y then return false end local l = line.new(self.x, self.y, x, y) local lx, ly = l() if lx and ly then -- GitLab