Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5397 in orxonox.OLD for trunk/src/lib/coord


Ignore:
Timestamp:
Oct 18, 2005, 5:33:11 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Elemet2D-drawing better
prevent segfault in setParent with NULL as new Parent in Element2D and PNode

File:
1 edited

Legend:

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

    r5394 r5397  
    415415    }
    416416  child->parent = this;
    417   this->children->add(child);
     417  if (unlikely(this != NULL))
     418    this->children->add(child);
    418419  child->parentCoorChanged();
    419420}
Note: See TracChangeset for help on using the changeset viewer.