diff options
author | Martin Kiewitz | 2010-07-09 12:30:34 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-09 12:30:34 +0000 |
commit | b602e7071be26838288d9b8f162a3dff70b7927f (patch) | |
tree | e17e4ff5641cec40d54a88041a949e78b9a6d313 /engines/sci/sound | |
parent | 125f28c367288ae9fe2992aaa96541ae067d7511 (diff) | |
download | scummvm-rg350-b602e7071be26838288d9b8f162a3dff70b7927f.tar.gz scummvm-rg350-b602e7071be26838288d9b8f162a3dff70b7927f.tar.bz2 scummvm-rg350-b602e7071be26838288d9b8f162a3dff70b7927f.zip |
SCI: fixing regression of r50755 - fixing kDoSoundSendMidi
svn-id: r50757
Diffstat (limited to 'engines/sci/sound')
-rw-r--r-- | engines/sci/sound/soundcmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp index 6732137962..e3c78a06cb 100644 --- a/engines/sci/sound/soundcmd.cpp +++ b/engines/sci/sound/soundcmd.cpp @@ -425,11 +425,11 @@ void SoundCommandParser::processUpdateCues(reg_t obj) { reg_t SoundCommandParser::kDoSoundSendMidi(int argc, reg_t *argv, reg_t acc) { reg_t obj = argv[0]; - byte channel = argv[2].toUint16() & 0xf; - byte midiCmd = argv[3].toUint16() & 0xff; + byte channel = argv[1].toUint16() & 0xf; + byte midiCmd = argv[2].toUint16() & 0xff; - uint16 controller = argv[4].toUint16(); - uint16 param = argv[5].toUint16(); + uint16 controller = argv[3].toUint16(); + uint16 param = argv[4].toUint16(); if (channel) channel--; // channel is given 1-based, we are using 0-based |