mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-08 22:26:51 +02:00
Fix crash on winning map on 7-day town timer running out for enemy
This commit is contained in:
@@ -249,6 +249,8 @@ void TurnOrderProcessor::doStartNewDay()
|
||||
assert(awaitingPlayers.empty());
|
||||
assert(actingPlayers.empty());
|
||||
|
||||
gameHandler->onNewTurn();
|
||||
|
||||
bool activePlayer = false;
|
||||
for (auto player : actedPlayers)
|
||||
{
|
||||
@@ -264,7 +266,6 @@ void TurnOrderProcessor::doStartNewDay()
|
||||
|
||||
std::swap(actedPlayers, awaitingPlayers);
|
||||
|
||||
gameHandler->onNewTurn();
|
||||
updateAndNotifyContactStatus();
|
||||
tryStartTurnsForPlayers();
|
||||
}
|
||||
|
Reference in New Issue
Block a user