diff options
author | Johannes Schickel | 2014-06-04 01:49:30 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-06-04 01:49:30 +0200 |
commit | 7b96217c11a6601dc36f0d11a7884ed033999ba3 (patch) | |
tree | 5d2b724853f1f8b9df3488a234de04aceb0f9613 | |
parent | a1d36da506d60dd6a83d422f98c9db5fcb962ede (diff) | |
download | scummvm-rg350-7b96217c11a6601dc36f0d11a7884ed033999ba3.tar.gz scummvm-rg350-7b96217c11a6601dc36f0d11a7884ed033999ba3.tar.bz2 scummvm-rg350-7b96217c11a6601dc36f0d11a7884ed033999ba3.zip |
SCUMM: Fix sfx resource unlocking in AD player.
-rw-r--r-- | engines/scumm/players/player_ad.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/players/player_ad.cpp b/engines/scumm/players/player_ad.cpp index be1756290d..3c40c1b54a 100644 --- a/engines/scumm/players/player_ad.cpp +++ b/engines/scumm/players/player_ad.cpp @@ -681,9 +681,9 @@ void Player_AD::parseSlot(int channel) { // If no channel of the sound effect is playing anymore, unlock // the resource. channel /= 3; - if (!_channels[channel + 0].state - && !_channels[channel + 1].state - && !_channels[channel + 2].state) { + if (!_channels[channel * 3 + 0].state + && !_channels[channel * 3 + 1].state + && !_channels[channel * 3 + 2].state) { _vm->_res->unlock(rtSound, _sfxResource[channel]); } return; |