From 9c034c53a3e174307928e431762c804941ae8c3d Mon Sep 17 00:00:00 2001 From: tenshi Date: Thu, 2 Nov 2023 23:32:10 +0100 Subject: [PATCH] CLIENT-GAME: Fix warnings --- src/ECS/Systems/WaveSystems.cpp | 2 +- src/Server/Systems/WaveSystem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ECS/Systems/WaveSystems.cpp b/src/ECS/Systems/WaveSystems.cpp index 7a307f2b..510f976c 100644 --- a/src/ECS/Systems/WaveSystems.cpp +++ b/src/ECS/Systems/WaveSystems.cpp @@ -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) { diff --git a/src/Server/Systems/WaveSystem.cpp b/src/Server/Systems/WaveSystem.cpp index 3e9a4345..39e3529a 100644 --- a/src/Server/Systems/WaveSystem.cpp +++ b/src/Server/Systems/WaveSystem.cpp @@ -39,7 +39,7 @@ void Wave::startNextWave() Nitwork::NitworkServer &server = Nitwork::NitworkServer::getInstance(); std::lock_guard lock(_mutex); - if (_waveIndex > _wavesId.size()) { + if (static_cast(_waveIndex) >= _wavesId.size()) { _isGameEnded = true; return; }