aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Fioramonti2018-07-21 07:44:59 -0700
committerDavid Fioramonti2018-07-21 07:45:39 -0700
commit3299402a2319ab02299b3ae32dab91a6618a5e50 (patch)
treea43ef1edd4913467e5be30584778096f22c0ba48
parent7cc0e833f27a3a3555e3a2bf0e711c50fae2d77e (diff)
downloadscummvm-rg350-3299402a2319ab02299b3ae32dab91a6618a5e50.tar.gz
scummvm-rg350-3299402a2319ab02299b3ae32dab91a6618a5e50.tar.bz2
scummvm-rg350-3299402a2319ab02299b3ae32dab91a6618a5e50.zip
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.
-rw-r--r--engines/mohawk/riven.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index 1f19b080de..2f17d5ee16 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -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
}