diff options
-rw-r--r-- | scumm/resource_v2.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scumm/resource_v2.cpp b/scumm/resource_v2.cpp index 08d12ee70c..c8beb528b5 100644 --- a/scumm/resource_v2.cpp +++ b/scumm/resource_v2.cpp @@ -61,7 +61,12 @@ void Scumm_v2::readClassicIndexFile() { for (i = 0; i < _numRooms; i++) { res.roomno[rtRoom][i] = i; - _fileHandle.seek(_numRooms, SEEK_CUR); + } + _fileHandle.seek(_numRooms, SEEK_CUR); + for (i = 0; i < _numRooms; i++) { + res.roomoffs[rtRoom][i] = _fileHandle.readUint16LE(); + if (res.roomoffs[rtRoom][i] == 0xFFFF) + res.roomoffs[rtRoom][i] = 0xFFFFFFFF; } for (i = 0; i < _numCostumes; i++) { |