diff options
author | Paul Gilbert | 2018-04-12 19:13:35 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-12 19:13:35 -0400 |
commit | 55c2a6001c9213b58431b2bcbed5d8de448cf6d9 (patch) | |
tree | d1c164c8eb0e55053b2b812671580976a32d3897 /engines/xeen/sound_driver.cpp | |
parent | 13c828801ebeb596db366cac95612a2cfb57a024 (diff) | |
download | scummvm-rg350-55c2a6001c9213b58431b2bcbed5d8de448cf6d9.tar.gz scummvm-rg350-55c2a6001c9213b58431b2bcbed5d8de448cf6d9.tar.bz2 scummvm-rg350-55c2a6001c9213b58431b2bcbed5d8de448cf6d9.zip |
XEEN: Fix read of freed data in multiple rapid playFX calls
Diffstat (limited to 'engines/xeen/sound_driver.cpp')
-rw-r--r-- | engines/xeen/sound_driver.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/xeen/sound_driver.cpp b/engines/xeen/sound_driver.cpp index 6ce10d9641..e79fcdd501 100644 --- a/engines/xeen/sound_driver.cpp +++ b/engines/xeen/sound_driver.cpp @@ -126,10 +126,7 @@ bool SoundDriver::musSkipWord(const byte *&srcP, byte param) { bool SoundDriver::cmdFreezeFrequency(const byte *&srcP, byte param) { debugC(3, kDebugSound, "cmdFreezeFrequency %d", param); - if (param >= _channels.size()) - warning("Invalid channel %d in cmdFreezeFrequency call", param); - else - _channels[param]._changeFrequency = false; + _channels[param]._changeFrequency = false; return false; } |