11-12-2013, 03:04 AM
Maybe m_OwnerObject is not initialized?
Anyway, perhaps we could add a tick delay before actually deallocating entities. If we add this delay any object referencing another entity can use the tick function to check whether the referenced entity is destroyed and remove the reference. You won't have to deal with callbacks and stuff, but you'll need to check the validity of your references each tick...
Anyway, perhaps we could add a tick delay before actually deallocating entities. If we add this delay any object referencing another entity can use the tick function to check whether the referenced entity is destroyed and remove the reference. You won't have to deal with callbacks and stuff, but you'll need to check the validity of your references each tick...