Browse Source

Merge pull request #581 from Ragora/bugfix-incorrect-function-call-crash-fix

* BugFix: Correct function call Error that causes the engine to crash
Brian Roberts 3 years ago
parent
commit
4176482373
1 changed files with 1 additions and 1 deletions
  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* curObject = NULL;
    SimObject* saveObject = NULL;
    SimObject* saveObject = NULL;
    Namespace::Entry* nsEntry;
    Namespace::Entry* nsEntry;
-   Namespace* ns;
+   Namespace* ns = NULL;
    const char* curFNDocBlock = NULL;
    const char* curFNDocBlock = NULL;
    const char* curNSDocBlock = NULL;
    const char* curNSDocBlock = NULL;
    const S32 nsDocLength = 128;
    const S32 nsDocLength = 128;