Explorar o código

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

Robert MacGregor %!s(int64=4) %!d(string=hai) anos
pai
achega
f9b78597f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;