Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2213 for code


Ignore:
Timestamp:
Nov 17, 2008, 9:32:37 PM (16 years ago)
Author:
landauf
Message:

WE-destructor deletes attached WEs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/WorldEntity.cc

    r2207 r2213  
    7272        {
    7373            this->node_->detachAllObjects();
     74
     75            for (std::set<WorldEntity*>::const_iterator it = this->children_.begin(); it != this->children_.end(); ++it)
     76                delete (*it);
     77
    7478            if (this->getScene()->getSceneManager())
    7579                this->getScene()->getSceneManager()->destroySceneNode(this->node_->getName());
Note: See TracChangeset for help on using the changeset viewer.