diff options
author | Matthew Hoops | 2011-02-14 16:01:04 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-02-14 16:01:04 -0500 |
commit | 31539697dc4551790f8da0b0a20f4f8008b1b1aa (patch) | |
tree | 2eee5834e5510c822b97294df11521f2d79459fd | |
parent | 7ecab9a982e68e6f500b8c056987acafb1ae1552 (diff) | |
download | scummvm-rg350-31539697dc4551790f8da0b0a20f4f8008b1b1aa.tar.gz scummvm-rg350-31539697dc4551790f8da0b0a20f4f8008b1b1aa.tar.bz2 scummvm-rg350-31539697dc4551790f8da0b0a20f4f8008b1b1aa.zip |
SCI: Fix loading pre-version 28 saved games
This is a regression from a9b051beff3157e1aa8
-rw-r--r-- | engines/sci/engine/savegame.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index a59d4c000b..ea56a2faff 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -179,7 +179,7 @@ void SegManager::saveLoadWithSerializer(Common::Serializer &s) { mobj->saveLoadWithSerializer(s); - if (type == SEG_TYPE_SCRIPT && s.getVersion() >= 28) { + if (type == SEG_TYPE_SCRIPT) { Script *scr = (Script *)mobj; // If we are loading a script, perform some extra steps @@ -196,7 +196,8 @@ void SegManager::saveLoadWithSerializer(Common::Serializer &s) { } // Sync the script's string heap - scr->syncStringHeap(s); + if (s.getVersion() >= 28) + scr->syncStringHeap(s); } } |