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
This commit is contained in:
Max Horn 2010-07-01 16:05:10 +00:00
parent 36799dc83f
commit c822cd67cb
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}