aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2003-07-19 04:32:35 +0000
committerTravis Howell2003-07-19 04:32:35 +0000
commitb887fd708e2466034451d3393d6667540a4e8c33 (patch)
treea901a2378ac7d023d4f6f48ca294894bf6cd7213 /scumm
parentfdb79e01cce8adaa1aec60d9419b2fea80460df5 (diff)
downloadscummvm-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.cpp4
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++) {