Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7125 in orxonox.OLD for trunk/src/world_entities/world_entity.cc


Ignore:
Timestamp:
Feb 12, 2006, 6:06:26 PM (19 years ago)
Author:
bensch
Message:

try fix

File:
1 edited

Legend:

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

    r7123 r7125  
    7474WorldEntity::~WorldEntity ()
    7575{
     76  State::getObjectManager()->toList(this, OM_INIT);
     77
     78  // Delete the model (unregister it with the ResourceManager)
     79  for (unsigned int i = 0; i < this->models.size(); i++)
     80    this->setModel(NULL, i);
     81
    7682  // Delete the obbTree
    7783  if( this->obbTree != NULL)
     
    8187    delete this->healthWidget;
    8288
    83   // Delete the model (unregister it with the ResourceManager)
    84   for (unsigned int i = 0; i < this->models.size(); i++)
    85     this->setModel(NULL, i);
    86 
    87   State::getObjectManager()->toList(this, OM_INIT);
    8889}
    8990
Note: See TracChangeset for help on using the changeset viewer.