浏览代码

* BugFix: Correct an error that causes the engine to crash when calling non-namespaced engine functions incorrectly.

Robert MacGregor 4 年之前
父节点
当前提交
f9b78597f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/console/compiledEval.cpp

+ 1 - 1
Engine/source/console/compiledEval.cpp

@@ -734,7 +734,7 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
    SimObject* curObject = NULL;
    SimObject* saveObject = NULL;
    Namespace::Entry* nsEntry;
-   Namespace* ns;
+   Namespace* ns = NULL;
    const char* curFNDocBlock = NULL;
    const char* curNSDocBlock = NULL;
    const S32 nsDocLength = 128;