diff options
author | Max Horn | 2010-07-01 16:05:10 +0000 |
---|---|---|
committer | Max Horn | 2010-07-01 16:05:10 +0000 |
commit | c822cd67cbebf22999a6b4d95d965ea5873e1b9a (patch) | |
tree | abbe265263e1246a70013bed05605e508dbd28b8 /engines/sci/engine/savegame.cpp | |
parent | 36799dc83f59674de8956ea2ec29029783633f45 (diff) | |
download | scummvm-rg350-c822cd67cbebf22999a6b4d95d965ea5873e1b9a.tar.gz scummvm-rg350-c822cd67cbebf22999a6b4d95d965ea5873e1b9a.tar.bz2 scummvm-rg350-c822cd67cbebf22999a6b4d95d965ea5873e1b9a.zip |
SCI: Make SegManager::_classTable private.
This require a small tweak to the save/load code: I moved the syncing
logic for _classtable from EngineState::saveLoadWithSerializer to
SegManager::saveLoadWithSerializer, which in theory should have no
effect (luckily, _classtable was being synced right after the
segment manager).
svn-id: r50551
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 6a1cbe4740..bf29dbb046 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -248,6 +248,8 @@ void SegManager::saveLoadWithSerializer(Common::Serializer &s) { s.syncAsSint32LE(_clonesSegId); s.syncAsSint32LE(_listsSegId); s.syncAsSint32LE(_nodesSegId); + + syncArray<Class>(s, _classTable); } @@ -343,8 +345,6 @@ void EngineState::saveLoadWithSerializer(Common::Serializer &s) { _segMan->saveLoadWithSerializer(s); - syncArray<Class>(s, _segMan->_classTable); - g_sci->_soundCmd->syncPlayList(s); } |