From f644d55af0ff69975827483bf4b0099d640a6451 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Sun, 24 Jun 2012 00:08:03 +0000
Subject: [PATCH] fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5273 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/Party.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Party.lua b/game/modules/tome/class/Party.lua
index aefa544e0d..ef3c4d5eaf 100644
--- a/game/modules/tome/class/Party.lua
+++ b/game/modules/tome/class/Party.lua
@@ -198,7 +198,7 @@ function _M:setPlayer(actor, bypass)
 	game.uiset.hotkeys_display.actor = actor
 	Map:setViewerActor(actor)
 	if game.target then game.target.source_actor = actor end
-	if game.level then game.level.map:moveViewSurround(actor.x, actor.y, 8, 8) end
+	if game.level and actor.x and actor.y then game.level.map:moveViewSurround(actor.x, actor.y, 8, 8) end
 	actor._move_others = actor.move_others
 	actor.move_others = true
 
-- 
GitLab