aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-01-27 17:18:06 +0000
committerTravis Howell2004-01-27 17:18:06 +0000
commit33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e (patch)
treee324b5de221df0ef2ef6b37dd4a3fcf76d10c651
parente6a7360d06adff5db538a178b9d897bb0509627c (diff)
downloadscummvm-rg350-33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e.tar.gz
scummvm-rg350-33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e.tar.bz2
scummvm-rg350-33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e.zip
Ooops
svn-id: r12637
-rw-r--r--simon/debugger.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/simon/debugger.cpp b/simon/debugger.cpp
index 805ffa7af4..dae0a64662 100644
--- a/simon/debugger.cpp
+++ b/simon/debugger.cpp
@@ -75,10 +75,11 @@ bool Debugger::Cmd_Help(int argc, const char **argv) {
}
bool Debugger::Cmd_PlayMusic(int argc, const char **argv) {
- uint music = atoi(argv[1]);
- if (_vm->_game & GF_SIMON2) {
- DebugPrintf("No support for Simon the Sorcerer 2\n");
- } else if (music > 0 && music < 35) {
+ if (argc > 1) {
+ uint music = atoi(argv[1]);
+ if (_vm->_game & GF_SIMON2)
+ DebugPrintf("No support for Simon the Sorcerer 2\n");
+ else if (music < 35)
_vm->loadMusic(music);
} else
DebugPrintf("Syntax: music <musicnum>\n");