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 3a8b1dd017..0f9f97ad16 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->_types[id].roomno[i] = i; + _res->_types[id]._resources[i]._roomno = i; _fileHandle->seek(num, SEEK_CUR); } else { for (i = 0; i < num; i++) - _res->_types[id].roomno[i] = _fileHandle->readByte(); + _res->_types[id]._resources[i]._roomno = _fileHandle->readByte(); } for (i = 0; i < num; i++) { - _res->_types[id].roomoffs[i] = _fileHandle->readUint16LE(); - if (_res->_types[id].roomoffs[i] == 0xFFFF) - _res->_types[id].roomoffs[i] = (uint32)RES_INVALID_OFFSET; + _res->_types[id]._resources[i]._roomoffs = _fileHandle->readUint16LE(); + if (_res->_types[id]._resources[i]._roomoffs == 0xFFFF) + _res->_types[id]._resources[i]._roomoffs = (uint32)RES_INVALID_OFFSET; } return num; |