Changeset 3277 in orxonox.OLD for orxonox/branches/parenting/src/p_node.cc
- Timestamp:
- Dec 25, 2004, 1:44:31 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/p_node.cc
r3276 r3277 69 69 PNode::~PNode () 70 70 { 71 this->children->destroy(); 72 delete this->children; 71 /* 72 delete &this->children; 73 delete &this->relCoordinate; 74 delete &this->absCoordinate; 75 delete &this->relDirection; 76 delete &this->absDirection; 77 */ 78 this->parent = NULL; 79 /* there is currently a problem with cleaning up - fix*/ 80 } 81 82 83 /** 84 \brief deletes the hole pnode tree 85 86 cleans up all pnodes 87 */ 88 void PNode::destroy () 89 { 90 PNode* pn = this->children->enumerate(); 91 while( pn != NULL) 92 { 93 pn->destroy (); 94 pn = this->children->nextElement(); 95 } 96 this->children->destroy (); 73 97 } 74 98
Note: See TracChangeset
for help on using the changeset viewer.