From 3299402a2319ab02299b3ae32dab91a6618a5e50 Mon Sep 17 00:00:00 2001 From: David Fioramonti Date: Sat, 21 Jul 2018 07:44:59 -0700 Subject: [PATCH] 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. --- engines/mohawk/riven.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index 1f19b080de3..2f17d5ee16e 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 }