aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/savegame.cpp3
-rw-r--r--engines/sci/engine/vm.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 848e2c3ebd..f8eddcdaa2 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -951,8 +951,7 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
#ifdef ENABLE_SCI32
// Copy the Gui32 pointer over to the new EngineState, if it exists
- if (s->_gui32)
- retval->_gui32 = s->_gui32;
+ retval->_gui32 = s->_gui32;
#endif
// Copy some old data
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index af57bb88e9..984dd1f043 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -1043,6 +1043,7 @@ void run_vm(EngineState *s, int restoring) {
// place (i.e. menus have been constructed etc). Therefore, inject a kRestoreGame call
// here, instead of the requested function.
int saveSlot = g_loadFromLauncher;
+ g_loadFromLauncher = -1; // invalidate slot, so that we don't load again
if (saveSlot < 0)
error("Requested to load invalid save slot"); // should never happen, really