diff options
author | Travis Howell | 2003-07-19 04:32:35 +0000 |
---|---|---|
committer | Travis Howell | 2003-07-19 04:32:35 +0000 |
commit | b887fd708e2466034451d3393d6667540a4e8c33 (patch) | |
tree | a901a2378ac7d023d4f6f48ca294894bf6cd7213 /scumm | |
parent | fdb79e01cce8adaa1aec60d9419b2fea80460df5 (diff) | |
download | scummvm-rg350-b887fd708e2466034451d3393d6667540a4e8c33.tar.gz scummvm-rg350-b887fd708e2466034451d3393d6667540a4e8c33.tar.bz2 scummvm-rg350-b887fd708e2466034451d3393d6667540a4e8c33.zip |
Another fix from Hibernatus
svn-id: r9070
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 0bcf8426c9..cd20fea630 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -402,8 +402,8 @@ void Sound::playSound(int soundID) { ptr += 0x20; size -= 0x20; if (size < waveSize) { - warning("Wrong wave size in sound #%i: %i", soundID, waveSize); - waveSize = size - 0x36; + error("Wrong wave size in sound #%i: %i", soundID, waveSize); + return; } sound = (char *)malloc(waveSize); for (int x = 0; x < waveSize; x++) { |