Changeset 7125 in orxonox.OLD for trunk/src/world_entities/world_entity.cc
- Timestamp:
- Feb 12, 2006, 6:06:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.cc
r7123 r7125 74 74 WorldEntity::~WorldEntity () 75 75 { 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 76 82 // Delete the obbTree 77 83 if( this->obbTree != NULL) … … 81 87 delete this->healthWidget; 82 88 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);88 89 } 89 90
Note: See TracChangeset
for help on using the changeset viewer.