1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix compiling

This commit is contained in:
nordsoft 2023-08-28 17:26:16 +04:00
parent 78397d6d1a
commit 084122bc80

View File

@ -1003,9 +1003,9 @@ void CGameHandler::run(bool resume)
{ {
const int waitTime = 100; //ms const int waitTime = 100; //ms
for(auto & player : gs->players) for(PlayerColor player(0); player < PlayerColor::PLAYER_LIMIT; ++player)
if (gs->isPlayerMakingTurn(player.first)) if(gs->isPlayerMakingTurn(player))
turnTimerHandler.onPlayerMakingTurn(player.second, waitTime); turnTimerHandler.onPlayerMakingTurn(player, waitTime);
if(gs->curB) if(gs->curB)
turnTimerHandler.onBattleLoop(waitTime); turnTimerHandler.onBattleLoop(waitTime);