1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Do not attempt to start a new turn on game end

This commit is contained in:
Ivan Savenko
2023-12-13 16:53:02 +02:00
parent 337e090ee9
commit a3adfcf7a7

View File

@@ -196,7 +196,10 @@ void TurnOrderProcessor::doStartNewDay()
}
if(!activePlayer)
{
gameHandler->gameLobby()->setState(EServerState::GAMEPLAY_ENDED);
return;
}
std::swap(actedPlayers, awaitingPlayers);