1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +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);