diff options
Diffstat (limited to 'scumm/sound.cpp')
-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++) { |