MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / unregisterReference

Method unregisterReference

Engine/source/console/simObject.cpp:1620–1636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1618//-----------------------------------------------------------------------------
1619
1620void SimObject::unregisterReference(SimObject **ptr)
1621{
1622 Notify *note = removeNotify((void *) ptr, Notify::ObjectRef);
1623 if(note)
1624 {
1625 freeNotify(note);
1626
1627 if( mFlags.test( AutoDelete ) )
1628 {
1629 for( Notify* n = mNotifyList; n != NULL; n = n->next )
1630 if( n->type == Notify::ObjectRef )
1631 return;
1632
1633 deleteObject();
1634 }
1635 }
1636}
1637
1638//-----------------------------------------------------------------------------
1639

Callers 2

~SimObjectMethod · 0.80
setCopySourceMethod · 0.80

Calls 1

testMethod · 0.45

Tested by

no test coverage detected