From 75c6f2fd609b16d6f122bee8cd7a04e7a300f325 Mon Sep 17 00:00:00 2001 From: Scott Thomas Date: Sat, 3 Nov 2018 22:56:02 +1030 Subject: GROOVIE: Fix GMM loads, block saves in a puzzle Loading and returning from subscripts alters the _variables used, thus are not guaranteed to create a valid save state. Loading a save should be valid at any time, as long as the active script being run is restored to the base game script. --- engines/groovie/groovie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/groovie/groovie.cpp') diff --git a/engines/groovie/groovie.cpp b/engines/groovie/groovie.cpp index 672c440e44..8edbb2947d 100644 --- a/engines/groovie/groovie.cpp +++ b/engines/groovie/groovie.cpp @@ -382,7 +382,7 @@ bool GroovieEngine::canLoadGameStateCurrently() { bool GroovieEngine::canSaveGameStateCurrently() { // TODO: verify the engine has been initialized if (_script) - return true; + return _script->canDirectSave(); else return false; } -- cgit v1.2.3