aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/players
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/players')
-rw-r--r--engines/scumm/players/player_ad.cpp6
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;