aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/imuse/sysex_scumm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/imuse/sysex_scumm.cpp b/engines/scumm/imuse/sysex_scumm.cpp
index 7a79278eb0..902b834e2c 100644
--- a/engines/scumm/imuse/sysex_scumm.cpp
+++ b/engines/scumm/imuse/sysex_scumm.cpp
@@ -189,7 +189,7 @@ void sysexHandler_Scumm (Player *player, const byte *msg, uint16 len) {
case 96: // Set instrument
part = player->getPart(p[0] & 0x0F);
- a = (p[1] & 0x0F) << 12 |(p[2] & 0x0F) << 8 |(p[4] & 0x0F) << 4 |(p[4] & 0x0F);
+ a = (p[1] & 0x0F) << 12 |(p[2] & 0x0F) << 8 |(p[3] & 0x0F) << 4 |(p[4] & 0x0F);
if (part)
part->set_instrument(a);
break;