Merge pull request #1461 from dafioram/myst3CmdVarWarn

MYST3: Debug warn instead of error for unknown var
This commit is contained in:
Bastien Bouclet authored and GitHub committed 2018-06-28 18:56:42 +02:00
commit 4fb4d0a74e
1 file changed
+4
+4
View File
@@ -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) {