mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
This one slipped through - nextToken can't use local variable for its token variable. This was stated as one of the breaking changes in the origional PR.
This commit is contained in:
parent
84be0a369f
commit
4293aef858
1 changed files with 1 additions and 6 deletions
|
|
@ -1703,12 +1703,7 @@ DefineEngineFunction( nextToken, const char*, ( const char* str1, const char* to
|
|||
if (*str)
|
||||
*str++ = 0;
|
||||
|
||||
// set local variable if inside a function
|
||||
if (gEvalState.getStackDepth() > 0 &&
|
||||
gEvalState.getCurrentFrame().scopeName)
|
||||
Con::setLocalVariable(token,tmp);
|
||||
else
|
||||
Con::setVariable(token,tmp);
|
||||
Con::setVariable(token,tmp);
|
||||
|
||||
// advance str past the 'delim space'
|
||||
while (isInSet(*str, delim))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue