Browse Source

fix tests

nordsoft 2 năm trước cách đây
mục cha
commit
17c9dc3115
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      test/game/CGameStateTest.cpp

+ 2 - 2
test/game/CGameStateTest.cpp

@@ -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);