fixing warnings

This commit is contained in:
Clément Le Bihan
2021-06-18 17:39:41 +02:00
parent 09d73c7988
commit 3218da652b
2 changed files with 4 additions and 2 deletions

View File

@@ -9,9 +9,9 @@ namespace BBM
ResumeLobbyComponent::ResumeLobbyComponent(WAL::Entity &entity, int playerNumber, WAL::Entity &button, WAL::Entity &tile, int pColor)
: WAL::Component(entity),
playerID(playerNumber),
playerColor(pColor),
readyButton(button),
coloredTile(tile),
playerColor(pColor)
coloredTile(tile)
{}
WAL::Component *ResumeLobbyComponent::clone(WAL::Entity &entity) const

View File

@@ -61,6 +61,7 @@ TEST_CASE("View add entity", "[View]")
.addComponent<PositionComponent>();
scene.applyChanges();
REQUIRE(scene.view<PositionComponent>().size() == 2);
(void)entity;
}
TEST_CASE("View remove entity", "[View]")
@@ -75,6 +76,7 @@ TEST_CASE("View remove entity", "[View]")
REQUIRE(scene.view<PositionComponent>().size() == 0);
for (auto &it : scene.view<PositionComponent>())
REQUIRE(false);
(void)scene;
}
TEST_CASE("View cache switch", "[View]")