mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
small fix.
This commit is contained in:
parent
4e678292e1
commit
960db74733
1 changed files with 2 additions and 1 deletions
|
|
@ -763,6 +763,7 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
|
||||||
|
|
||||||
// Clean up...
|
// Clean up...
|
||||||
delete object;
|
delete object;
|
||||||
|
currentNewObject = NULL;
|
||||||
ip = failJump;
|
ip = failJump;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -1011,7 +1012,7 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
|
||||||
if (currentNewObject)
|
if (currentNewObject)
|
||||||
currentNewObject->onPostAdd();
|
currentNewObject->onPostAdd();
|
||||||
|
|
||||||
//Assert( objectCreationStackIndex >= 0 );
|
AssertFatal( objectCreationStackIndex >= 0, "Object Stack is empty." );
|
||||||
// Restore the object info from the stack [7/9/2007 Black]
|
// Restore the object info from the stack [7/9/2007 Black]
|
||||||
currentNewObject = objectCreationStack[--objectCreationStackIndex].newObject;
|
currentNewObject = objectCreationStack[--objectCreationStackIndex].newObject;
|
||||||
failJump = objectCreationStack[objectCreationStackIndex].failJump;
|
failJump = objectCreationStack[objectCreationStackIndex].failJump;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue