1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

fixed broken test

This commit is contained in:
AlexVinS 2019-06-09 20:32:06 +03:00
parent a2364b9351
commit d2de94b811

View File

@ -211,9 +211,9 @@ TEST_F(CGameStateTest, issue2765)
for(const CStack * s : gameState->curB->stacks) for(const CStack * s : gameState->curB->stacks)
{ {
if(s->type->idNumber == CreatureID::BALLISTA) if(s->type->idNumber == CreatureID::BALLISTA && s->unitSide() == BattleSide::DEFENDER)
def = s; def = s;
else if(s->type->idNumber == CreatureID(69)) else if(s->type->idNumber == CreatureID(69) && s->unitSide() == BattleSide::ATTACKER)
att = s; att = s;
} }
ASSERT_NE(att, nullptr); ASSERT_NE(att, nullptr);