aboutsummaryrefslogtreecommitdiff
path: root/engines/made/sound.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-01-06 13:09:16 +0000
committerFilippos Karapetis2009-01-06 13:09:16 +0000
commitef78bbdf0d41f773c76d1e1fb8c47d0339e2a935 (patch)
tree683d3e406107913b39e5aa3300ae862e27e447cf /engines/made/sound.cpp
parentde7721c63863018dc70aa5b7cf135d373c45892a (diff)
downloadscummvm-rg350-ef78bbdf0d41f773c76d1e1fb8c47d0339e2a935.tar.gz
scummvm-rg350-ef78bbdf0d41f773c76d1e1fb8c47d0339e2a935.tar.bz2
scummvm-rg350-ef78bbdf0d41f773c76d1e1fb8c47d0339e2a935.zip
The sound energy buffer is now cleared inside decompressSound()
svn-id: r35753
Diffstat (limited to 'engines/made/sound.cpp')
-rw-r--r--engines/made/sound.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/made/sound.cpp b/engines/made/sound.cpp
index e397bd584f..5bf35ce0af 100644
--- a/engines/made/sound.cpp
+++ b/engines/made/sound.cpp
@@ -52,6 +52,8 @@ void decompressSound(byte *source, byte *dest, uint16 chunkSize, uint16 chunkCou
{16, 2, 0x0F, 4}
};
+ soundEnergy.clear();
+
while (chunkCount--) {
deltaType = (*source) >> 6;
workChunkSize = chunkSize;