From 99992599dbea19221ced02de76de3e4a2de26933 Mon Sep 17 00:00:00 2001 From: Vadim Markovtsev Date: Fri, 22 Jan 2016 22:37:46 +0300 Subject: [PATCH] Partially fix 1416 tavern hero rotation --- server/CGameHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 19627cb5a..03a703240 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -734,7 +734,7 @@ void CGameHandler::battleAfterLevelUp( const BattleResult &result ) sah.army[0].setCreature(SlotID(0), finishingBattle->loserHero->type->initialArmy.at(0).creature, 1); } - if(const CGHeroInstance *another = getPlayer(finishingBattle->loser)->availableHeroes.at(1)) + if(const CGHeroInstance *another = getPlayer(finishingBattle->loser)->availableHeroes.at(0)) sah.hid[1] = another->subID; else sah.hid[1] = -1; @@ -752,7 +752,7 @@ void CGameHandler::battleAfterLevelUp( const BattleResult &result ) sah.army[0].clear(); sah.army[0].setCreature(SlotID(0), finishingBattle->winnerHero->type->initialArmy.at(0).creature, 1); - if(const CGHeroInstance *another = getPlayer(finishingBattle->victor)->availableHeroes.at(1)) + if(const CGHeroInstance *another = getPlayer(finishingBattle->victor)->availableHeroes.at(0)) sah.hid[1] = another->subID; else sah.hid[1] = -1;