mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 16:31:01 +00:00
AGOS: Correct off-by-one error in range check for setting the debug level.
This commit is contained in:
parent
0a458019b3
commit
5f4d83c38d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user