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:
parent
a2364b9351
commit
d2de94b811
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user