aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/resource_v2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/resource_v2.cpp b/scumm/resource_v2.cpp
index 7c4fb326d4..0733aed47f 100644
--- a/scumm/resource_v2.cpp
+++ b/scumm/resource_v2.cpp
@@ -60,7 +60,9 @@ void Scumm_v2::readIndexFile() {
int num = _fileHandle.readUint16LE();
assert(num == _numGlobalObjects);
for (int i = 0; i != num; i++) {
- _objectStateTable[i] = _fileHandle.readByte();
+ byte tmp = _fileHandle.readByte();
+ _objectOwnerTable[i] = tmp & OF_OWNER_MASK;
+ _objectStateTable[i] = tmp >> OF_STATE_SHL;
}
readResTypeList(rtRoom, MKID('ROOM'), "room");
readResTypeList(rtCostume, MKID('COST'), "costume");