aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMatthew Hoops2010-08-04 05:15:01 +0000
committerMatthew Hoops2010-08-04 05:15:01 +0000
commit0eaa9bddb6beb605ef602dffb4da6dae9713ac50 (patch)
tree3359b462e5e5d2192b80204f09c5f01fe8eb4fb4 /engines/sci
parentcbe07a07b7bad5dec7630d85675128cd5f7ece51 (diff)
downloadscummvm-rg350-0eaa9bddb6beb605ef602dffb4da6dae9713ac50.tar.gz
scummvm-rg350-0eaa9bddb6beb605ef602dffb4da6dae9713ac50.tar.bz2
scummvm-rg350-0eaa9bddb6beb605ef602dffb4da6dae9713ac50.zip
SCI: Fix restoring SCI32 games (a regression of r51712)
svn-id: r51723
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/savegame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index fb23b79c34..a086669997 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -760,7 +760,8 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
s->gameStartTime = g_system->getMillis();
s->_screenUpdateTime = g_system->getMillis();
- g_sci->_gfxPorts->reset();
+ if (g_sci->_gfxPorts)
+ g_sci->_gfxPorts->reset();
g_sci->_soundCmd->reconstructPlayList(meta.savegame_version);