1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

fix tests

This commit is contained in:
nordsoft 2023-04-29 03:36:39 +04:00 committed by Nordsoft91
parent 318ac4f23b
commit 17c9dc3115

View File

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