aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/music.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/music.cpp')
-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;
}