From 1f6c3341c8b24cf772513b0896b66979c80cd6d3 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Fri, 21 Dec 2012 10:07:15 +0000
Subject: [PATCH] fix

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

diff --git a/game/modules/tome/class/Party.lua b/game/modules/tome/class/Party.lua
index b2d1222d90..57733f8294 100644
--- a/game/modules/tome/class/Party.lua
+++ b/game/modules/tome/class/Party.lua
@@ -200,6 +200,10 @@ function _M:setPlayer(actor, bypass)
 
 	if actor == game.player then return true end
 
+	-- Stop!!
+	if game.player.runStop then game.player:runStop("Switching control") end
+	if game.player.restStop then game.player:restStop("Switching control") end
+
 	local def = self.members[actor]
 	local oldp = self.player
 	self.player = actor
-- 
GitLab