aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cpp
diff options
context:
space:
mode:
authorMax Horn2009-05-03 09:30:59 +0000
committerMax Horn2009-05-03 09:30:59 +0000
commit79b0711cfd1c91f49de9528b1710da014c149003 (patch)
tree42d0382da55ec45e0ef39a012ad0bf3ed3adab1c /engines/sci/engine/savegame.cpp
parent50c8821072b31d24783fba9f058f805a176a4d7a (diff)
downloadscummvm-rg350-79b0711cfd1c91f49de9528b1710da014c149003.tar.gz
scummvm-rg350-79b0711cfd1c91f49de9528b1710da014c149003.tar.bz2
scummvm-rg350-79b0711cfd1c91f49de9528b1710da014c149003.zip
SCI: Begun conversion of the MemObject union (used to implement poor man's fake inheritance) into a base class of all the various union members
svn-id: r40272
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r--engines/sci/engine/savegame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 198d62e41b..710c6b8a20 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -445,12 +445,12 @@ static void sync_MemObjPtr(Common::Serializer &s, MemObject *&obj) {
if (s.isLoading()) {
//assert(!obj);
obj = (MemObject *)sci_calloc(1, sizeof(MemObject));
- obj->_type = type;
+ obj->data.tmp_dummy._type = type;
} else {
assert(obj);
}
- s.syncAsSint32LE(obj->_segmgrId);
+ s.syncAsSint32LE(obj->data.tmp_dummy._segmgrId);
switch (type) {
case MEM_OBJ_SCRIPT:
sync_Script(s, obj->data.script);