aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/drivers/cms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sound/drivers/cms.cpp')
-rw-r--r--engines/sci/sound/drivers/cms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sound/drivers/cms.cpp b/engines/sci/sound/drivers/cms.cpp
index dbcbf3d431..fd60863177 100644
--- a/engines/sci/sound/drivers/cms.cpp
+++ b/engines/sci/sound/drivers/cms.cpp
@@ -422,7 +422,7 @@ int MidiDriver_CMS::findVoiceBasic(int channel) {
}
if (voice == -1) {
- if (oldestVoice != -1) {
+ if (oldestVoice >= 0) {
voiceOff(oldestVoice);
voice = oldestVoice;
} else {