mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fix console garbage error when evaluating strings.
This commit is contained in:
parent
f04aca9def
commit
9448256422
1 changed files with 3 additions and 1 deletions
|
|
@ -2410,7 +2410,9 @@ DefineEngineFunction( exec, bool, ( const char* fileName, bool noCalls, bool jou
|
|||
|
||||
DefineEngineFunction( eval, const char*, ( const char* consoleString ), , "eval(consoleString)" )
|
||||
{
|
||||
return Con::evaluate(consoleString, false, NULL);
|
||||
ConsoleValue returnValue = Con::evaluate(consoleString, false, NULL);
|
||||
|
||||
return Con::getReturnBuffer(returnValue.getString());
|
||||
}
|
||||
|
||||
DefineEngineFunction( getVariable, const char*, ( const char* varName ), , "(string varName)\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue