瀏覽代碼

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.

Jeff Hutchinson 3 年之前
父節點
當前提交
4293aef858
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      Engine/source/console/consoleFunctions.cpp

+ 1 - 6
Engine/source/console/consoleFunctions.cpp

@@ -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))