Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 14, 2005, 10:54:00 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now the delete-process is as inteded by c++
virtual ~ClassName extends deletion and deletes also the MasterClass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/world_entity.cc

    r3531 r3544  
    4747{
    4848  // if( collisioncluster != NULL) delete collisioncluster;
    49   this->destroy();
    50 }
    51 
    52 /**
    53    \brief Function to call if a WorldEntity is destroyed. deletes all alocated memory.
    54    */
    55 void WorldEntity::destroy()
    56 {
    57 
    58   // delete everything of pNode.
    59   static_cast<PNode*>(this)->destroy();
    60 }
    61 
     49
     50}
    6251
    6352/**
Note: See TracChangeset for help on using the changeset viewer.