mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 11:27:44 +00:00
MYST3: Debug warn instead of error for unknown var
When using the var command in the debug console warn if the variable number is not in range rather than error.
This commit is contained in:
parent
d9dc0d4704
commit
ddf77597b9
@ -165,6 +165,10 @@ bool Console::Cmd_Var(int argc, const char **argv) {
|
||||
}
|
||||
|
||||
uint16 var = atoi(argv[1]);
|
||||
if (var < 1 || var > 2047) {
|
||||
debugPrintf("Variable out of range %d\n", var);
|
||||
return true;
|
||||
}
|
||||
uint32 value = _vm->_state->getVar(var);
|
||||
|
||||
if (argc == 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user