diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/sound_towns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp index 750c6edfc2..02651102c2 100644 --- a/engines/kyra/sound_towns.cpp +++ b/engines/kyra/sound_towns.cpp @@ -592,7 +592,7 @@ int32 SoundTownsPC98_v2::voicePlay(const char *file, Audio::SoundHandle *handle, int h = 0; if (_currentSFX) { - while (_mixer->isSoundHandleActive(_soundChannels[h]) && h < kNumChannelHandles) + while (h < kNumChannelHandles && _mixer->isSoundHandleActive(_soundChannels[h])) h++; if (h >= kNumChannelHandles) return 0; |