Skip to content

Commit

Permalink
SCUMM: Add debug output in case the code tries to set up a non-exista…
Browse files Browse the repository at this point in the history
…nt iMuse instrument.
  • Loading branch information
Johannes Schickel committed Jul 13, 2011
1 parent ed3fe43 commit 482fcea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/scumm/imuse/imuse.cpp
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 482fcea

Please sign in to comment.