diff options
author | Travis Howell | 2004-01-28 03:08:42 +0000 |
---|---|---|
committer | Travis Howell | 2004-01-28 03:08:42 +0000 |
commit | 4c430c9b4ae7e834968e7eef5c52649ae63d5c92 (patch) | |
tree | 1e0deab7c3ca8f50eb75fbcab566e0885b0cf058 | |
parent | 0e9e75da9d80fe124116d661b793f91781f6cbfb (diff) | |
download | scummvm-rg350-4c430c9b4ae7e834968e7eef5c52649ae63d5c92.tar.gz scummvm-rg350-4c430c9b4ae7e834968e7eef5c52649ae63d5c92.tar.bz2 scummvm-rg350-4c430c9b4ae7e834968e7eef5c52649ae63d5c92.zip |
Another safety check.
svn-id: r12652
-rw-r--r-- | simon/debugger.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/simon/debugger.cpp b/simon/debugger.cpp index a11dc9d8c4..300e9dffb8 100644 --- a/simon/debugger.cpp +++ b/simon/debugger.cpp @@ -195,9 +195,10 @@ bool Debugger::Cmd_StartSubroutine(int argc, const char **argv) { uint subroutine = atoi(argv[1]); Subroutine *sub; sub = _vm->getSubroutineByID(subroutine); - _vm->startSubroutine(sub); + if (sub != NULL) + _vm->startSubroutine(sub); } else - DebugPrintf("Syntax: sub <subroutinenum>\n"); + DebugPrintf("Subroutine %d\n", _vm->_subroutine); return true; } |