1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Quick fix for previous commit.

This commit is contained in:
DjWarmonger
2012-05-01 09:02:27 +00:00
parent 2fbc57e140
commit c4d933c668

View File

@@ -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;