diff options
author | Bastien Bouclet | 2018-09-09 16:06:02 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-09-09 16:11:12 +0200 |
commit | e758ff8036c871ad634a8fb9ba97e03663c4a920 (patch) | |
tree | 6e08fb018d4aeb3971057113645e7c409b850189 /engines/mohawk | |
parent | 22ded2c406ea07fb14d1127bcbbc3043815dd2da (diff) | |
download | scummvm-rg350-e758ff8036c871ad634a8fb9ba97e03663c4a920.tar.gz scummvm-rg350-e758ff8036c871ad634a8fb9ba97e03663c4a920.tar.bz2 scummvm-rg350-e758ff8036c871ad634a8fb9ba97e03663c4a920.zip |
MOHAWK: RIVEN: Don't allow saving from the GMM if no game is started
Diffstat (limited to 'engines/mohawk')
-rw-r--r-- | engines/mohawk/riven.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index a17d5f77b9..b2997690c4 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -744,7 +744,7 @@ void MohawkEngine_Riven::saveGameStateAndDisplayError(int slot, const Common::St } void MohawkEngine_Riven::tryAutoSaving() { - if (!canSaveGameStateCurrently() || !isGameStarted() || _gameEnded) { + if (!canSaveGameStateCurrently() || _gameEnded) { return; // Can't save right now, try again on the next frame } @@ -797,7 +797,7 @@ bool MohawkEngine_Riven::canLoadGameStateCurrently() { } bool MohawkEngine_Riven::canSaveGameStateCurrently() { - return canLoadGameStateCurrently(); + return canLoadGameStateCurrently() && isGameStarted(); } bool MohawkEngine_Riven::hasGameEnded() const { |