Changeset 4979 in orxonox.OLD for orxonox/trunk/src/util/garbage_collector.cc
- Timestamp:
- Aug 10, 2005, 4:47:23 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/garbage_collector.cc
r4975 r4979 25 25 26 26 using namespace std; 27 28 27 29 28 GarbageCollector* GarbageCollector::singletonRef = 0; … … 119 118 void GarbageCollector::update() 120 119 { 121 if (this->time < this->delay) 122 { 123 return; 124 } 125 if (this->collectedObjects == NULL) 120 if (this->time < this->delay || this->collectedObjects == NULL) 126 121 return; 127 122 else … … 131 126 while (tmpC != NULL) 132 127 { 133 WorldEntity* entity = dynamic_cast<WorldEntity*>(tmpC->objectPointer);128 //WorldEntity* entity = dynamic_cast<WorldEntity*>(tmpC->objectPointer); 134 129 //State::getWorldEntityList()->remove(entity); 135 entity->remove();136 FastFactory::kill( entity, true);130 //entity->remove(); 131 FastFactory::kill(tmpC->objectPointer, true); 137 132 138 133 moveC = tmpC->next;
Note: See TracChangeset
for help on using the changeset viewer.