aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/debugger.cpp')
-rw-r--r--engines/scumm/debugger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/debugger.cpp b/engines/scumm/debugger.cpp
index 617c2ab85f..4dff43c6c3 100644
--- a/engines/scumm/debugger.cpp
+++ b/engines/scumm/debugger.cpp
@@ -145,8 +145,8 @@ bool ScummDebugger::Cmd_IMuse(int argc, const char **argv) {
debugPrintf("Selecting from %d songs...\n", _vm->_numSounds);
sound = _vm->_rnd.getRandomNumber(_vm->_numSounds);
}
- _vm->ensureResourceLoaded(rtSound, sound);
- _vm->_musicEngine->startSound(sound);
+ if (_vm->getResourceAddress(rtSound, sound))
+ _vm->_musicEngine->startSound(sound);
debugPrintf("Attempted to start music %d.\n", sound);
} else {