aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-17 10:39:38 -0400
committerPaul Gilbert2016-09-17 10:39:38 -0400
commitf176624dca18a706b133ec3379293737da5bf8b2 (patch)
treee03b0f03473f25722848091a1b017ee455b288a8
parent94f1c71c08ce060bee1869552f6b219ad83fa477 (diff)
downloadscummvm-rg350-f176624dca18a706b133ec3379293737da5bf8b2.tar.gz
scummvm-rg350-f176624dca18a706b133ec3379293737da5bf8b2.tar.bz2
scummvm-rg350-f176624dca18a706b133ec3379293737da5bf8b2.zip
XEEN: Fix FX instrument handling
-rw-r--r--engines/xeen/music.cpp6
1 files 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;
}