diff options
author | Max Horn | 2010-06-28 11:22:20 +0000 |
---|---|---|
committer | Max Horn | 2010-06-28 11:22:20 +0000 |
commit | 30218a2c324bc67f724100051ab9884a351928fb (patch) | |
tree | 38b0a0b7a3a723d82a295ac75caf84204ad3c826 /engines/sci/engine/savegame.cpp | |
parent | 85038e7d6c272555c54d9f4b87665392bfa96aaf (diff) | |
download | scummvm-rg350-30218a2c324bc67f724100051ab9884a351928fb.tar.gz scummvm-rg350-30218a2c324bc67f724100051ab9884a351928fb.tar.bz2 scummvm-rg350-30218a2c324bc67f724100051ab9884a351928fb.zip |
SCI: Make Script member vars private; add const qualifiers
Only three Script members remain public (for now)
svn-id: r50428
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 f6a6afd196..c0ed515981 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -278,7 +278,7 @@ void SegManager::saveLoadWithSerializer(Common::Serializer &s) { // If we are loading a script, hook it up in the script->segment map. if (s.isLoading() && type == SEG_TYPE_SCRIPT) { - _scriptSegMap[((Script *)mobj)->_nr] = i; + _scriptSegMap[((Script *)mobj)->getScriptNumber()] = i; } } @@ -765,7 +765,7 @@ void SegManager::reconstructScripts(EngineState *s) { scr->_localsBlock = (scr->_localsSegment == 0) ? NULL : (LocalVariables *)(_heap[scr->_localsSegment]); for (ObjMap::iterator it = scr->_objects.begin(); it != scr->_objects.end(); ++it) - it->_value._baseObj = scr->_buf + it->_value.getPos().offset; + it->_value._baseObj = scr->getBuf(it->_value.getPos().offset); } for (i = 0; i < _heap.size(); i++) { |