Browse Source

Quick fix for previous commit.

DjWarmonger 13 years ago
parent
commit
c4d933c668
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/CGameHandler.cpp

+ 1 - 1
server/CGameHandler.cpp

@@ -527,7 +527,7 @@ void CGameHandler::endBattle(int3 tile, const CGHeroInstance *hero1, const CGHer
 
 	winLoseHandle(1<<sides[0] | 1<<sides[1]); //handle victory/loss of engaged players
 
-	if(result < BattleResult::SURRENDER) //loser has escaped or surrendered
+	if(result == BattleResult::SURRENDER || result == BattleResult::ESCAPE) //loser has escaped or surrendered
 	{
 		SetAvailableHeroes sah;
 		sah.player = loser;