aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2018-06-24 21:34:59 +0200
committerBastien Bouclet2018-06-29 13:31:55 +0200
commit52c89cb1e2bae4515f31ad894497c02c75820935 (patch)
tree6ec8ebef1fb06eb15d39c5d7102522132f522c3d /engines
parent7884201b43f1eeae5def5d8d3371da586e7bc17e (diff)
downloadscummvm-rg350-52c89cb1e2bae4515f31ad894497c02c75820935.tar.gz
scummvm-rg350-52c89cb1e2bae4515f31ad894497c02c75820935.tar.bz2
scummvm-rg350-52c89cb1e2bae4515f31ad894497c02c75820935.zip
MOHAWK: RIVEN: Disable autosaving while the game is not started
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 a3a71f839b..4075f80c0f 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -726,7 +726,7 @@ void MohawkEngine_Riven::saveGameStateAndDisplayError(int slot, const Common::St
}
void MohawkEngine_Riven::tryAutoSaving() {
- if (!canSaveGameStateCurrently()) {
+ if (!canSaveGameStateCurrently() || !isGameStarted()) {
return; // Can't save right now, try again on the next frame
}