aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/utils.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-06-10 01:21:56 +0300
committerEugene Sandulenko2013-09-06 14:48:10 +0300
commitf106d791983223906847343c4b1f1ec7ffcc05d5 (patch)
tree78643142d57e17b363cf1800d93cd305f70de1fc /engines/fullpipe/utils.cpp
parent775065af1d23d9114594c96a77ecf04f1e722795 (diff)
downloadscummvm-rg350-f106d791983223906847343c4b1f1ec7ffcc05d5.tar.gz
scummvm-rg350-f106d791983223906847343c4b1f1ec7ffcc05d5.tar.bz2
scummvm-rg350-f106d791983223906847343c4b1f1ec7ffcc05d5.zip
FULLPIPE: Fix object indexing
Diffstat (limited to 'engines/fullpipe/utils.cpp')
-rw-r--r--engines/fullpipe/utils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index aa4c270d54..a81665b48b 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -127,7 +127,7 @@ CObject *MfcArchive::parseClass() {
objectId = _classMap[name];
_objectMap.push_back(objectId);
- debug(0, "tag: %d (%x)", _objectMap.size() - 1, objectId);
+ debug(0, "tag: %d 0x%x (%x)", _objectMap.size() - 1, _objectMap.size() - 1, objectId);
objectId = _classMap[name];
} else if ((obTag & 0x8000) == 0) {
@@ -145,7 +145,8 @@ CObject *MfcArchive::parseClass() {
objectId = _objectMap[obTag];
}
- _objectMap.push_back(objectId);
+ if (objectId)
+ _objectMap.push_back(objectId);
debug(0, "objectId: %d", objectId);