aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2015-05-22 17:52:51 +0200
committerMartin Kiewitz2015-05-22 17:52:51 +0200
commit57b106d41793f91f571c7bd29b71165f875c1372 (patch)
treedf9705e1fb317d7375daf74d5353f3645e2d2a3f
parent74814d20dc2a2ab86532ff66282302a488b9953c (diff)
downloadscummvm-rg350-57b106d41793f91f571c7bd29b71165f875c1372.tar.gz
scummvm-rg350-57b106d41793f91f571c7bd29b71165f875c1372.tar.bz2
scummvm-rg350-57b106d41793f91f571c7bd29b71165f875c1372.zip
SHERLOCK: sound: fix CLIP
-rw-r--r--engines/sherlock/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/sound.cpp b/engines/sherlock/sound.cpp
index 2ed6a1bbe8..4f27481f5b 100644
--- a/engines/sherlock/sound.cpp
+++ b/engines/sherlock/sound.cpp
@@ -92,7 +92,7 @@ byte Sound::decodeSample(byte sample, byte &reference, int16 &scale) {
int16 ref = 0;
// clip bad ADPCM-4 sample
- CLIP<int16>(samp, 0, 63);
+ samp = CLIP<int16>(samp, 0, 63);
ref = reference + creativeADPCM_ScaleMap[samp];
if (ref > 0xff) {