Skip to content

Commit

Permalink
CLIENT-GAME: Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TTENSHII committed Nov 2, 2023
1 parent 4052022 commit 9c034c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ECS/Systems/WaveSystems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace Systems {
return enemiesTypes.at(enemyType);
}

static const enemy_type_e getEnemyType(const std::string &enemyId)
static enemy_type_e getEnemyType(const std::string &enemyId)
{
for (const auto &pair : enemiesTypes) {
if (pair.second == enemyId) {
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Systems/WaveSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void Wave::startNextWave()
Nitwork::NitworkServer &server = Nitwork::NitworkServer::getInstance();
std::lock_guard<std::mutex> lock(_mutex);

if (_waveIndex > _wavesId.size()) {
if (static_cast<std::size_t>(_waveIndex) >= _wavesId.size()) {
_isGameEnded = true;
return;
}
Expand Down

0 comments on commit 9c034c5

Please sign in to comment.