Ticket #2894: sysex_scumm-typo.diff

File sysex_scumm-typo.diff, 532 bytes (added by SF/albeu, 14 years ago)

Patch against r24646

  • engines/scumm/imuse/sysex_scumm.cpp

     
    189189
    190190        case 96: // Set instrument
    191191                part = player->getPart(p[0] & 0x0F);
    192                 a = (p[1] & 0x0F) << 12 |(p[2] & 0x0F) << 8 |(p[4] & 0x0F) << 4 |(p[4] & 0x0F);
     192                a = (p[1] & 0x0F) << 12 |(p[2] & 0x0F) << 8 |(p[3] & 0x0F) << 4 |(p[4] & 0x0F);
    193193                if (part)
    194194                        part->set_instrument(a);
    195195                break;