diff options
Diffstat (limited to 'engines/sci/resource.cpp')
-rw-r--r-- | engines/sci/resource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 076575bbfb..02d8e62137 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -285,8 +285,8 @@ void ResourceManager::checkIfAudioVolumeIsCompressed(ResourceSource *source) { uint32 recordCount = file->readUint32LE(); if (!recordCount) error("compressed audio volume doesn't contain any entries!"); - source->audioCompressionOffsetMapping = new int32[(recordCount + 1) * 4 * 2]; - file->read(&source->audioCompressionOffsetMapping, recordCount * 4 * 2); + source->audioCompressionOffsetMapping = new int32[(recordCount + 1) * 2]; + file->read(source->audioCompressionOffsetMapping, recordCount * 4 * 2); // Put ending zero source->audioCompressionOffsetMapping[recordCount * 2] = 0; source->audioCompressionOffsetMapping[recordCount * 2 + 1] = file->size(); |