mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Forgot to null out the datablock after being deleted when it fails to preload.
This commit is contained in:
parent
772c0ae25b
commit
7f59bc6350
1 changed files with 1 additions and 0 deletions
|
|
@ -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),
|
Con::errorf(ConsoleLogEntry::General, "%s: preload failed for %s: %s.", getFileLine(ip - 2),
|
||||||
currentNewObject->getName(), errorStr.c_str());
|
currentNewObject->getName(), errorStr.c_str());
|
||||||
dataBlock->deleteObject();
|
dataBlock->deleteObject();
|
||||||
|
currentNewObject = NULL;
|
||||||
ip = failJump;
|
ip = failJump;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue