Skip to content
Snippets Groups Projects
Commit 08c85788 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@2095 51575b47-30f0-44d4-a5cc-537603b46e54
parent 525e5446
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ function _M:bumpInto(target)
local chat = Chat.new(self.can_talk, self, target)
chat:invoke()
if self.can_talk_only_once then self.can_talk = nil end
elseif target.cant_be_moved and self.cant_be_moved then
elseif target.cant_be_moved and self.cant_be_moved and target.x and target.y and self.x and self.y then
-- Displace
local tx, ty, sx, sy = target.x, target.y, self.x, self.y
target.x = nil target.y = nil
......
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