mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Allow local variables to be used in eval.
This commit is contained in:
parent
5137e54a7c
commit
2d50f52cf1
5 changed files with 90 additions and 54 deletions
|
|
@ -693,7 +693,8 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
|
|||
// Do we want this code to execute using a new stack frame?
|
||||
if (setFrame < 0)
|
||||
{
|
||||
gEvalState.pushFrame(NULL, NULL, 0);
|
||||
// argc is the local count for eval
|
||||
gEvalState.pushFrame(NULL, NULL, argc);
|
||||
gCallStack.pushFrame(0);
|
||||
popFrame = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue