From 6cf38231541789930c8f7b4ddef0ba9e1684c98e Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Wed, 24 Jun 2009 03:14:46 +0000 Subject: [PATCH] Correctly count the number of wandering heroes when moving hero off garrison. --- server/CGameHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 0dd5431be..d343ffe5a 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -1838,7 +1838,7 @@ bool CGameHandler::garrisonSwap( si32 tid ) else if (town->garrisonHero && !town->visitingHero) //move hero out of the garrison { //check if moving hero out of town will break 8 wandering heroes limit - if(getHeroCount(town->garrisonHero->tempOwner,true) >= 8) + if(getHeroCount(town->garrisonHero->tempOwner,false) >= 8) { complain("Cannot move hero out of the garrison, there are already 8 wandering heroes!"); return false;