aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2010-08-04 22:45:10 +0000
committerMatthew Hoops2010-08-04 22:45:10 +0000
commit4a2ab850192eeec9df486d920b0cb769081d2b03 (patch)
tree368cd1cd436939e2667f0f907f7d98c5fc8ae63d /engines
parent79882783369235ae815a5f00d5c7d9d281b9fb7b (diff)
downloadscummvm-rg350-4a2ab850192eeec9df486d920b0cb769081d2b03.tar.gz
scummvm-rg350-4a2ab850192eeec9df486d920b0cb769081d2b03.tar.bz2
scummvm-rg350-4a2ab850192eeec9df486d920b0cb769081d2b03.zip
SCI: Fix size of wave files inside audio volumes (thanks to LordHoto for pointing out)
svn-id: r51745
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/resource_audio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp
index 8c7fe9eca4..a25505fe47 100644
--- a/engines/sci/resource_audio.cpp
+++ b/engines/sci/resource_audio.cpp
@@ -93,7 +93,7 @@ bool Resource::loadFromAudioVolumeSCI11(Common::SeekableReadStream *file) {
uint32 riffTag = file->readUint32BE();
if (riffTag == MKID_BE('RIFF')) {
_headerSize = 0;
- size = file->readUint32LE();
+ size = file->readUint32LE() + 8;
file->seek(-8, SEEK_CUR);
return loadFromWaveFile(file);
}