diff options
author | Paweł Kołodziejski | 2003-04-20 21:09:43 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-04-20 21:09:43 +0000 |
commit | 7dd0bda6eabe266081fee7d45965d1424755592c (patch) | |
tree | 9af681bebd966e404eb0ef95855fb65850f1e120 /scumm | |
parent | 91a259534168a9127ae1c737f48c60c86c719cfb (diff) | |
download | scummvm-rg350-7dd0bda6eabe266081fee7d45965d1424755592c.tar.gz scummvm-rg350-7dd0bda6eabe266081fee7d45965d1424755592c.tar.bz2 scummvm-rg350-7dd0bda6eabe266081fee7d45965d1424755592c.zip |
fixed building object tables (now I understand)
svn-id: r7042
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/resource_v2.cpp | 4 |
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"); |