Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4870 in orxonox.OLD


Ignore:
Timestamp:
Jul 15, 2005, 1:02:36 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed major bug in PNode deletion cycle.
The Node did not unsubscribe itself at its parent

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r4836 r4870  
    9494  /* this deletes all children in the list */
    9595  delete this->children;
    96   this->parent = NULL;
     96  if (this->parent)
     97    this->parent->removeChild(this);
    9798}
    9899
  • orxonox/trunk/src/story_entities/world.cc

    r4850 r4870  
    182182  delete WorldInterface::getInstance();
    183183  delete this->entities;
    184   delete NullParent::getInstance();
    185184  State::setWorldEntityList(NULL);
    186185
     
    199198  //delete animator
    200199
     200  delete NullParent::getInstance();
    201201  LoadClassDescription::printAll();
    202202
Note: See TracChangeset for help on using the changeset viewer.