1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix autosave at end of turn starting with AI turn on load

This commit is contained in:
Dydzio
2023-07-24 18:24:57 +02:00
parent a280cc8845
commit a4f9cde57d

View File

@@ -417,14 +417,14 @@ void AdventureMapInterface::hotkeyEndingTurn()
if(settings["session"]["spectate"].Bool())
return;
LOCPLINT->makingTurn = false;
LOCPLINT->cb->endTurn();
if(!settings["general"]["startTurnAutosave"].Bool())
{
LOCPLINT->performAutosave();
}
LOCPLINT->makingTurn = false;
LOCPLINT->cb->endTurn();
mapAudio->onPlayerTurnEnded();
}