1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

vcmi: massive refactoring v1

This commit is contained in:
Konstantin
2023-04-05 03:26:29 +03:00
parent ee489f18d2
commit 11b237a23c
129 changed files with 803 additions and 762 deletions

View File

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