From 01d1029b1f511d362a7221553c5aa85b46b84f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20W=2E=20Urba=C5=84czyk?= Date: Thu, 28 Feb 2013 05:09:08 +0000 Subject: [PATCH] Fixed #1221. --- client/CPlayerInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/CPlayerInterface.cpp b/client/CPlayerInterface.cpp index f52c37309..8e8293a45 100644 --- a/client/CPlayerInterface.cpp +++ b/client/CPlayerInterface.cpp @@ -506,7 +506,7 @@ void CPlayerInterface::heroInGarrisonChange(const CGTownInstance *town) if(town->visitingHero && !vstd::contains(wanderingHeroes,town->visitingHero)) //hero leaves garrison { CGI->mh->printObject(town->visitingHero); - if (town->visitingHero == playerID) // our hero + if (town->visitingHero->tempOwner == playerID) // our hero wanderingHeroes.push_back(town->visitingHero); } adventureInt->heroList.update();