diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 578bb4901..4e8d1b62e 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -1003,9 +1003,9 @@ void CGameHandler::run(bool resume) { const int waitTime = 100; //ms - for(auto & player : gs->players) - if (gs->isPlayerMakingTurn(player.first)) - turnTimerHandler.onPlayerMakingTurn(player.second, waitTime); + for(PlayerColor player(0); player < PlayerColor::PLAYER_LIMIT; ++player) + if(gs->isPlayerMakingTurn(player)) + turnTimerHandler.onPlayerMakingTurn(player, waitTime); if(gs->curB) turnTimerHandler.onBattleLoop(waitTime);