Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6118 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 14, 2005, 11:55:02 PM (19 years ago)
Author:
bensch
Message:

om: segfault prevention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/objectmanager/src/lib/coord/p_node.cc

    r6078 r6118  
    8181    {
    8282      deleteNode = tmp;
    83       ++tmp;
     83      tmp++;
    8484//      printf("TEST::%s(%s) %s\n", (*deleteNode)->getName(), (*deleteNode)->getClassName(), this->getName());
    8585      if ((this->parentMode & PNODE_PROHIBIT_CHILD_DELETE) ||
     
    470470              this->getClassName(), this->getName(), child->getClassName(), child->getName());
    471471    child->parent = NULL;
     472    child->parentCoorChanged();
    472473  }
    473474}
     
    536537    if (this->parentMode & PNODE_REPARENT_CHILDREN_ON_REMOVE ||
    537538        (*reparenter)->parentMode & PNODE_REPARENT_ON_PARENTS_REMOVE)
    538     {      printf("TEST----------------%s ---- %s\n", this->getClassName(), (*reparenter)->getClassName());
     539    {
     540      printf("TEST----------------%s ---- %s\n", this->getClassName(), (*reparenter)->getClassName());
    539541      (*reparenter)->reparent();
    540542      printf("REPARENTED TO: %s::%s\n",(*reparenter)->getParent()->getClassName(),(*reparenter)->getParent()->getName());
     
    542544  }
    543545  if (this->parent != NULL)
     546  {
    544547    this->parent->eraseChild(this);
     548    this->parent = NULL;
     549  }
    545550}
    546551
Note: See TracChangeset for help on using the changeset viewer.