diff options
author | Filippos Karapetis | 2010-06-09 09:17:48 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-09 09:17:48 +0000 |
commit | 536b2614e8bd7c3c6e47e686a90596460c5448d1 (patch) | |
tree | 55eb2235bf58831e2397ce39004fc10267675ffe /engines/sci/engine/savegame.cpp | |
parent | 95b080f60b74fe9b83d71abc9a80038f025845c6 (diff) | |
download | scummvm-rg350-536b2614e8bd7c3c6e47e686a90596460c5448d1.tar.gz scummvm-rg350-536b2614e8bd7c3c6e47e686a90596460c5448d1.tar.bz2 scummvm-rg350-536b2614e8bd7c3c6e47e686a90596460c5448d1.zip |
Globals from script 0 are now initialized in script_init_engine(), and are accessed from the relevant variables pointer. Removed direct reference to script 0 from the engine state
svn-id: r49536
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 815ffa32a9..255e2700ee 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -870,7 +870,7 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { s->_segMan->reconstructStack(s); s->_segMan->reconstructScripts(s); s->_segMan->reconstructClones(); - s->script_000 = s->_segMan->getScript(s->_segMan->getScriptSegment(0, SCRIPT_GET_DONT_LOAD)); + s->initGlobals(); s->gc_countdown = GC_INTERVAL - 1; // Time state: |