diff options
-rw-r--r-- | engines/scumm/players/player_ad.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/scumm/players/player_ad.cpp b/engines/scumm/players/player_ad.cpp index ba75bdd922..adcda68e10 100644 --- a/engines/scumm/players/player_ad.cpp +++ b/engines/scumm/players/player_ad.cpp @@ -316,7 +316,9 @@ int Player_AD::allocateHWChannel(int priority, SfxSlot *owner) { // We don't allow SFX to reallocate their own channels. Otherwise we // would call stopSfx in the midst of startSfx and that can lead to // horrible states... - if (_hwChannels[i].priority <= minPrio && (!owner || _hwChannels[i].sfxOwner != owner)) { + // We also prevent the music from reallocating its own channels like + // in the original. + if (_hwChannels[i].priority <= minPrio && _hwChannels[i].sfxOwner != owner) { minPrio = _hwChannels[i].priority; channel = i; } |