From f176624dca18a706b133ec3379293737da5bf8b2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 17 Sep 2016 10:39:38 -0400 Subject: XEEN: Fix FX instrument handling --- engines/xeen/music.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engines/xeen/music.cpp b/engines/xeen/music.cpp index 36118242d2..c4458328b1 100644 --- a/engines/xeen/music.cpp +++ b/engines/xeen/music.cpp @@ -622,9 +622,11 @@ bool AdlibMusicDriver::fxInjectMidi(const byte *&srcP, byte param) { } bool AdlibMusicDriver::fxPlayInstrument(const byte *&srcP, byte param) { - debugC(3, kDebugSound, "musPlayInstrument %d", param); + byte instrument = *srcP++; + debugC(3, kDebugSound, "fxPlayInstrument %d, %d", param, instrument); + if (!_exclude7 || param != 7) - playInstrument(param, _fxInstrumentPtrs[param]); + playInstrument(param, _fxInstrumentPtrs[instrument]); return false; } -- cgit v1.2.3