diff options
author | Christoph Mallon | 2011-08-06 11:16:35 +0200 |
---|---|---|
committer | Christoph Mallon | 2011-08-07 15:19:07 +0200 |
commit | 5f4d83c38da338ebebb50a5d978d4b81ed361808 (patch) | |
tree | 7fce3d7555e2c53e1e4d704aaccef0743ea1f32d /engines | |
parent | 0a458019b3589cff5426becdbbcc01db0ce9d223 (diff) | |
download | scummvm-rg350-5f4d83c38da338ebebb50a5d978d4b81ed361808.tar.gz scummvm-rg350-5f4d83c38da338ebebb50a5d978d4b81ed361808.tar.bz2 scummvm-rg350-5f4d83c38da338ebebb50a5d978d4b81ed361808.zip |
AGOS: Correct off-by-one error in range check for setting the debug level.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/debugger.cpp b/engines/agos/debugger.cpp index b019c06908..fc24c6d363 100644 --- a/engines/agos/debugger.cpp +++ b/engines/agos/debugger.cpp @@ -57,7 +57,7 @@ bool Debugger::Cmd_DebugLevel(int argc, const char **argv) { DebugPrintf("Debugging is currently set at level %d\n", gDebugLevel); } else { // set level gDebugLevel = atoi(argv[1]); - if (gDebugLevel >= 0 && gDebugLevel < 10) { + if (0 <= gDebugLevel && gDebugLevel < 11) { _vm->_debugMode = true; DebugPrintf("Debug level set to level %d\n", gDebugLevel); } else if (gDebugLevel < 0) { |