diff options
Diffstat (limited to 'engines/scumm/resource_v4.cpp')
-rw-r--r-- | engines/scumm/resource_v4.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/resource_v4.cpp b/engines/scumm/resource_v4.cpp index e0d86e707c..6215e86b89 100644 --- a/engines/scumm/resource_v4.cpp +++ b/engines/scumm/resource_v4.cpp @@ -37,13 +37,13 @@ int ScummEngine_v4::readResTypeList(ResType type) { num = _fileHandle->readUint16LE(); - if (num != _res->_types[type]._resources.size()) { + if (num != _res->_types[type].size()) { error("Invalid number of %ss (%d) in directory", nameOfResType(type), num); } for (ResId idx = 0; idx < num; idx++) { - _res->_types[type]._resources[idx]._roomno = _fileHandle->readByte(); - _res->_types[type]._resources[idx]._roomoffs = _fileHandle->readUint32LE(); + _res->_types[type][idx]._roomno = _fileHandle->readByte(); + _res->_types[type][idx]._roomoffs = _fileHandle->readUint32LE(); } return num; |