mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-05 09:10:29 +00:00
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:
parent
7cc0e833f2
commit
3299402a23
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user