From 482fcea8f3c57c7db12a81a3e124bc7b6e3594a5 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 14 Jul 2011 01:09:47 +0200 Subject: [PATCH] SCUMM: Add debug output in case the code tries to set up a non-existant iMuse instrument. --- engines/scumm/imuse/imuse.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/scumm/imuse/imuse.cpp b/engines/scumm/imuse/imuse.cpp index 5ad4798578a7..27a72c2afee1 100644 --- a/engines/scumm/imuse/imuse.cpp +++ b/engines/scumm/imuse/imuse.cpp @@ -1693,8 +1693,10 @@ void IMuseInternal::copyGlobalInstrument(byte slot, Instrument *dest) { // In case we have an valid instrument set up, copy it to the part. _global_instruments[slot].copy_to(dest); } else if (_pcSpeaker) { + debug(0, "Trying to use non-existant global PC Speaker instrument %d", slot); dest->pcspk(defaultInstr); } else { + debug(0, "Trying to use non-existant global AdLib instrument %d", slot); dest->adlib(defaultInstr); } }