소스 검색

Merge pull request #2404 from dydzio0614/autosave-fix

End turn autosave fix
Ivan Savenko 2 년 전
부모
커밋
be3ed014a7
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      client/adventureMap/AdventureMapInterface.cpp

+ 3 - 3
client/adventureMap/AdventureMapInterface.cpp

@@ -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();
 }