aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2018-07-21 21:31:40 +0200
committerGitHub2018-07-21 21:31:40 +0200
commit8f9daa906c3a43d00ce004494a87cfe698aa9150 (patch)
treeb416242e8217093a3f993b1d2feea5e2efb12c40 /engines
parentcd87d769327dfb760460be471d7ffda63e339685 (diff)
parent3299402a2319ab02299b3ae32dab91a6618a5e50 (diff)
downloadscummvm-rg350-8f9daa906c3a43d00ce004494a87cfe698aa9150.tar.gz
scummvm-rg350-8f9daa906c3a43d00ce004494a87cfe698aa9150.tar.bz2
scummvm-rg350-8f9daa906c3a43d00ce004494a87cfe698aa9150.zip
Merge pull request #1257 from dafioram/mohawkRivenAutosaveCredits
MOHAWK: RIVEN: Don't allow autosaving during credits
Diffstat (limited to 'engines')
-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
}