aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-06-09 12:26:38 +0300
committerEugene Sandulenko2013-09-06 14:48:09 +0300
commitad47d5a5e2f0a1b88d101aca9ad25b2af2f1beae (patch)
tree20ae1ec5f968610ac8475dc845034a1341378e77
parente9fa2e52df6d5823499bd5731a16dba7c5c7c9db (diff)
downloadscummvm-rg350-ad47d5a5e2f0a1b88d101aca9ad25b2af2f1beae.tar.gz
scummvm-rg350-ad47d5a5e2f0a1b88d101aca9ad25b2af2f1beae.tar.bz2
scummvm-rg350-ad47d5a5e2f0a1b88d101aca9ad25b2af2f1beae.zip
FULLPIPE: Attampt to fix serializer. Still not working
-rw-r--r--engines/fullpipe/utils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index 954af848af..d9fd3d829b 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -75,6 +75,8 @@ MfcArchive::MfcArchive() {
}
_lastIndex = 1;
+
+ _objectMap.push_back(0);
}
CObject *MfcArchive::parseClass() {
@@ -100,7 +102,7 @@ CObject *MfcArchive::parseClass() {
objectId = _classMap[name];
_objectMap.push_back(objectId);
- debug(0, "tag: %d", _objectMap.size());
+ debug(0, "tag: %d", _objectMap.size() - 1);
} else {
obTag &= ~0x8000;
@@ -110,7 +112,7 @@ CObject *MfcArchive::parseClass() {
error("Object index too big: %d at 0x%08x", obTag, pos() - 2);
}
- objectId = _objectMap[obTag - 1];
+ objectId = _objectMap[obTag];
}
debug(0, "objectId: %d", objectId);