aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/sound.cpp')
-rw-r--r--engines/scumm/sound.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp
index f5068e75d0..4a136f65d5 100644
--- a/engines/scumm/sound.cpp
+++ b/engines/scumm/sound.cpp
@@ -1224,7 +1224,7 @@ int ScummEngine::readSoundResource(int idx) {
if (!dmuFile.open(buffer)) {
error("Can't open music file %s", buffer);
- _res->_types[rtSound].roomoffs[idx] = RES_INVALID_OFFSET;
+ _res->_types[rtSound]._resources[idx]._roomoffs = RES_INVALID_OFFSET;
return 0;
}
dmuFile.seek(4, SEEK_SET);
@@ -1248,7 +1248,7 @@ int ScummEngine::readSoundResource(int idx) {
}
error("Unrecognized base tag 0x%08x in sound %d", basetag, idx);
}
- _res->_types[rtSound].roomoffs[idx] = RES_INVALID_OFFSET;
+ _res->_types[rtSound]._resources[idx]._roomoffs = RES_INVALID_OFFSET;
return 0;
}
@@ -2123,7 +2123,7 @@ int ScummEngine::readSoundResourceSmallHeader(int idx) {
_fileHandle->read(_res->createResource(rtSound, idx, ro_size - 4), ro_size - 4);
return 1;
}
- _res->_types[rtSound].roomoffs[idx] = RES_INVALID_OFFSET;
+ _res->_types[rtSound]._resources[idx]._roomoffs = RES_INVALID_OFFSET;
return 0;
}