HOHAWK: RIVEN: Don't allow autosaving after credits have finished

There is a brief period after the credits finish, but before the engine
closes that autosaving can happen.

Fixes Trac#10635.
This commit is contained in:
David Fioramonti 2018-07-21 07:44:59 -07:00
parent 7cc0e833f2
commit 3299402a23

View File

@ -737,7 +737,7 @@ void MohawkEngine_Riven::saveGameStateAndDisplayError(int slot, const Common::St
}
void MohawkEngine_Riven::tryAutoSaving() {
if (!canSaveGameStateCurrently() || !isGameStarted()) {
if (!canSaveGameStateCurrently() || !isGameStarted() || _gameEnded) {
return; // Can't save right now, try again on the next frame
}