aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/sound/drivers/pc9801.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sound/drivers/pc9801.cpp b/engines/sci/sound/drivers/pc9801.cpp
index 4f1e7b9637..fe7d5bf7ba 100644
--- a/engines/sci/sound/drivers/pc9801.cpp
+++ b/engines/sci/sound/drivers/pc9801.cpp
@@ -1502,7 +1502,7 @@ void MidiDriver_PC9801::assignFreeChannels(int num) {
continue;
if (missing < num) {
num -= missing;
- _parts[i]->addChannels(num, 0);
+ _parts[i]->addChannels(missing, 0);
} else {
_parts[i]->addChannels(num, missing - num);
return;