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();