From b602e7071be26838288d9b8f162a3dff70b7927f Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 9 Jul 2010 12:30:34 +0000 Subject: SCI: fixing regression of r50755 - fixing kDoSoundSendMidi svn-id: r50757 --- engines/sci/sound/soundcmd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sci') 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 -- cgit v1.2.3