Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9859 in orxonox.OLD for branches/new_class_id/src/lib/coord


Ignore:
Timestamp:
Oct 1, 2006, 11:13:29 AM (18 years ago)
Author:
bensch
Message:

new_class_id: segfault-prevention in the PNode deletion process (not the nicest way, but it works)
This was with me for 3 months now…

File:
1 edited

Legend:

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

    r9790 r9859  
    8888    if (deleteNode == last)
    8989    {
    90       PRINTF(1)("Node same as last that was tried to be deleted. FORCE delete of %p\n", deleteNode);
    91       delete deleteNode;
     90      PRINTF(1)("Node same as last that was tried to be deleted. FORCE reparent to NULL of %p\n", deleteNode);
     91      (deleteNode->setParent( NULL));
    9292      continue;
    9393    }
Note: See TracChangeset for help on using the changeset viewer.