mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
fixed broken test
This commit is contained in:
parent
a2364b9351
commit
d2de94b811
@ -211,9 +211,9 @@ TEST_F(CGameStateTest, issue2765)
|
||||
|
||||
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;
|
||||
else if(s->type->idNumber == CreatureID(69))
|
||||
else if(s->type->idNumber == CreatureID(69) && s->unitSide() == BattleSide::ATTACKER)
|
||||
att = s;
|
||||
}
|
||||
ASSERT_NE(att, nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user