diff options
Diffstat (limited to 'engines/kyra/sound_towns.cpp')
-rw-r--r-- | engines/kyra/sound_towns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp index e3102d747b..e34f7d014c 100644 --- a/engines/kyra/sound_towns.cpp +++ b/engines/kyra/sound_towns.cpp @@ -1437,9 +1437,9 @@ void SoundTowns_v2::voicePlay(const char *file) { int h = 0; if (_currentSFX) { - while (_mixer->isSoundHandleActive(_sfxHandles[h])) + while (_mixer->isSoundHandleActive(_sfxHandles[h]) && h < kNumChannelHandles) h++; - if (h >= kNumVocHandles) + if (h >= kNumChannelHandles) return; } |