aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorChristoph Mallon2011-08-06 11:16:35 +0200
committerChristoph Mallon2011-08-07 15:19:07 +0200
commit5f4d83c38da338ebebb50a5d978d4b81ed361808 (patch)
tree7fce3d7555e2c53e1e4d704aaccef0743ea1f32d /engines
parent0a458019b3589cff5426becdbbcc01db0ce9d223 (diff)
downloadscummvm-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.cpp2
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) {