mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Wrong player was engaged for 5lvl dwelling
This commit is contained in:
parent
a188d55685
commit
8e1dc785eb
@ -2118,6 +2118,9 @@ void CGameHandler::setupBattle(int3 tile, const CArmedInstance *armies[2], const
|
||||
//send info about battles
|
||||
BattleStart bs;
|
||||
bs.info = BattleInfo::setupBattle(tile, terrain, terType, armies, heroes, creatureBank, town);
|
||||
|
||||
engageIntoBattle(bs.info->sides[0].color);
|
||||
engageIntoBattle(bs.info->sides[1].color);
|
||||
sendAndApply(&bs);
|
||||
}
|
||||
|
||||
@ -2577,9 +2580,6 @@ void CGameHandler::startBattlePrimary(const CArmedInstance *army1, const CArmedI
|
||||
if(gs->curB)
|
||||
gs->curB.dellNull();
|
||||
|
||||
engageIntoBattle(army1->tempOwner);
|
||||
engageIntoBattle(army2->tempOwner);
|
||||
|
||||
static const CArmedInstance *armies[2];
|
||||
armies[0] = army1;
|
||||
armies[1] = army2;
|
||||
|
Loading…
Reference in New Issue
Block a user