[Scummvm-cvs-logs] scummvm master -> 482fcea8f3c57c7db12a81a3e124bc7b6e3594a5

lordhoto lordhoto at gmail.com
Thu Jul 14 01:13:08 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
482fcea8f3 SCUMM: Add debug output in case the code tries to set up a non-existant iMuse instrument.


Commit: 482fcea8f3c57c7db12a81a3e124bc7b6e3594a5
    https://github.com/scummvm/scummvm/commit/482fcea8f3c57c7db12a81a3e124bc7b6e3594a5
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2011-07-13T16:09:47-07:00

Commit Message:
SCUMM: Add debug output in case the code tries to set up a non-existant iMuse instrument.

Changed paths:
    engines/scumm/imuse/imuse.cpp



diff --git a/engines/scumm/imuse/imuse.cpp b/engines/scumm/imuse/imuse.cpp
index 5ad4798..27a72c2 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);
 	}
 }






More information about the Scummvm-git-logs mailing list