소스 검색

Merge pull request #571 from JeffProgrammer/fix-ts-datablocks

Forgot to null out the datablock after being deleted when it fails to preload
Brian Roberts 4 년 전
부모
커밋
7663fb6f9a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Engine/source/console/compiledEval.cpp

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

@@ -1103,6 +1103,7 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
             Con::errorf(ConsoleLogEntry::General, "%s: preload failed for %s: %s.", getFileLine(ip - 2),
                currentNewObject->getName(), errorStr.c_str());
             dataBlock->deleteObject();
+            currentNewObject = NULL;
             ip = failJump;
             break;
          }