aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorathrxx2019-04-28 23:15:01 +0200
committerathrxx2019-04-28 23:24:50 +0200
commitc7126c9bc44ab8a275970e1dfcfac85dffe433c5 (patch)
treee320939a4ab083cc791451f07c8afa8a86457829 /engines/sci
parent04229fd70bdbfdfdc075fa68085fba3d55f72b90 (diff)
downloadscummvm-rg350-c7126c9bc44ab8a275970e1dfcfac85dffe433c5.tar.gz
scummvm-rg350-c7126c9bc44ab8a275970e1dfcfac85dffe433c5.tar.bz2
scummvm-rg350-c7126c9bc44ab8a275970e1dfcfac85dffe433c5.zip
SCI: (PC98 sound driver) - fix channel assignment bug
Diffstat (limited to 'engines/sci')
-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;