diff options
author | Martin Kiewitz | 2015-05-22 17:52:51 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-05-22 17:52:51 +0200 |
commit | 57b106d41793f91f571c7bd29b71165f875c1372 (patch) | |
tree | df9705e1fb317d7375daf74d5353f3645e2d2a3f | |
parent | 74814d20dc2a2ab86532ff66282302a488b9953c (diff) | |
download | scummvm-rg350-57b106d41793f91f571c7bd29b71165f875c1372.tar.gz scummvm-rg350-57b106d41793f91f571c7bd29b71165f875c1372.tar.bz2 scummvm-rg350-57b106d41793f91f571c7bd29b71165f875c1372.zip |
SHERLOCK: sound: fix CLIP
-rw-r--r-- | engines/sherlock/sound.cpp | 2 |
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) { |