mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fix console warning when calling void functions in console
Forgot to add this check when rewriting the interpreter.
This commit is contained in:
parent
0e06e2853e
commit
73b023a4b7
|
|
@ -2022,7 +2022,11 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
|
|||
break;
|
||||
}
|
||||
|
||||
Con::warnf(ConsoleLogEntry::General, "%s: Call to %s in %s uses result of void function call.", getFileLine(ip - 4), fnName, functionName);
|
||||
if (Con::getBoolVariable("$Con::warnVoidAssignment", true))
|
||||
{
|
||||
Con::warnf(ConsoleLogEntry::General, "%s: Call to %s in %s uses result of void function call.", getFileLine(ip - 4), fnName, functionName);
|
||||
}
|
||||
|
||||
stack[_STK + 1].setEmptyString();
|
||||
_STK++;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue