From 33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 27 Jan 2004 17:18:06 +0000 Subject: Ooops svn-id: r12637 --- simon/debugger.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'simon') 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 \n"); -- cgit v1.2.3