diff options
Diffstat (limited to 'engines/scumm/resource_v3.cpp')
-rw-r--r-- | engines/scumm/resource_v3.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/scumm/resource_v3.cpp b/engines/scumm/resource_v3.cpp index 323e5b6370..3a8b1dd017 100644 --- a/engines/scumm/resource_v3.cpp +++ b/engines/scumm/resource_v3.cpp @@ -44,16 +44,16 @@ int ScummEngine_v3old::readResTypeList(int id) { if (id == rtRoom) { for (i = 0; i < num; i++) - _res->roomno[id][i] = i; + _res->_types[id].roomno[i] = i; _fileHandle->seek(num, SEEK_CUR); } else { for (i = 0; i < num; i++) - _res->roomno[id][i] = _fileHandle->readByte(); + _res->_types[id].roomno[i] = _fileHandle->readByte(); } for (i = 0; i < num; i++) { - _res->roomoffs[id][i] = _fileHandle->readUint16LE(); - if (_res->roomoffs[id][i] == 0xFFFF) - _res->roomoffs[id][i] = (uint32)RES_INVALID_OFFSET; + _res->_types[id].roomoffs[i] = _fileHandle->readUint16LE(); + if (_res->_types[id].roomoffs[i] == 0xFFFF) + _res->_types[id].roomoffs[i] = (uint32)RES_INVALID_OFFSET; } return num; |