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

Forgot to null out the datablock after being deleted when it fails to preload
This commit is contained in:
Brian Roberts 2021-09-11 14:20:12 -05:00 committed by GitHub
commit 7663fb6f9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}