Author Topic: Bug Report: OnActive event occurs before object parenting.  (Read 376 times)

Bromoc

  • Sentient
  • **
  • Posts: 84
  • Karma: +2/-0
    • View Profile
Bug Report: OnActive event occurs before object parenting.
« on: August 05, 2011, 12:30:57 AM »
if you call Object::getCurrentSystem() and Object::getParent() in the OnActive event it returns null. however if you wait a tick afterwards it returns back as normal.

Investigating the parent tree, found out that the object has yet to have a parent during OnActive.

I was trying to limit the number of a subsystem per system. I was able to work around it but it smells.