diff options
author | Travis Howell | 2004-01-27 17:18:06 +0000 |
---|---|---|
committer | Travis Howell | 2004-01-27 17:18:06 +0000 |
commit | 33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e (patch) | |
tree | e324b5de221df0ef2ef6b37dd4a3fcf76d10c651 | |
parent | e6a7360d06adff5db538a178b9d897bb0509627c (diff) | |
download | scummvm-rg350-33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e.tar.gz scummvm-rg350-33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e.tar.bz2 scummvm-rg350-33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e.zip |
Ooops
svn-id: r12637
-rw-r--r-- | simon/debugger.cpp | 9 |
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"); |