diff options
author | Eugene Sandulenko | 2013-06-10 01:21:56 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:48:10 +0300 |
commit | f106d791983223906847343c4b1f1ec7ffcc05d5 (patch) | |
tree | 78643142d57e17b363cf1800d93cd305f70de1fc /engines/fullpipe/utils.cpp | |
parent | 775065af1d23d9114594c96a77ecf04f1e722795 (diff) | |
download | scummvm-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.cpp | 5 |
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); |