mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-24 17:13:54 +00:00
Merge pull request #701 from JeffProgrammer/console-warn-void-fix
Fix console warning when calling void functions in console
This commit is contained in:
commit
bd876e427a
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue