aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJames Brown2003-07-19 07:42:01 +0000
committerJames Brown2003-07-19 07:42:01 +0000
commitb295340912248d1ace387b87ee751b446ed0e773 (patch)
treefcdac8629cd5ac1a53595fcbd77b03e11430994e /scumm
parente4b598fb5db9fd536211c0393c4896bb8793a0c9 (diff)
downloadscummvm-rg350-b295340912248d1ace387b87ee751b446ed0e773.tar.gz
scummvm-rg350-b295340912248d1ace387b87ee751b446ed0e773.tar.bz2
scummvm-rg350-b295340912248d1ace387b87ee751b446ed0e773.zip
Restore size hack properly
svn-id: r9072
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 8e8f3dedc2..0bcf8426c9 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -403,7 +403,7 @@ void Sound::playSound(int soundID) {
size -= 0x20;
if (size < waveSize) {
warning("Wrong wave size in sound #%i: %i", soundID, waveSize);
- waveSize = size;
+ waveSize = size - 0x36;
}
sound = (char *)malloc(waveSize);
for (int x = 0; x < waveSize; x++) {