Changeset 8793 for code/branches/ai2/src/orxonox
- Timestamp:
- Jul 28, 2011, 5:24:32 PM (13 years ago)
- Location:
- code/branches/ai2/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/orxonox/controllers/ArtificialController.cc
r8792 r8793 104 104 if (this->isInitialized()) 105 105 {//Vector-implementation: mode_.erase(mode_.begin(),mode_.end()); 106 for (size_t i = 0; i < this->waypoints_.size(); ++i) 107 { 108 if(this->waypoints_[i]) 109 this->waypoints_[i]->destroy(); 110 } 111 //this->waypoints_.clear(); 106 this->waypoints_.clear(); 112 107 this->removeFromFormation(); 113 108 this->weaponModes_.clear(); -
code/branches/ai2/src/orxonox/controllers/WaypointController.cc
r8786 r8793 45 45 WaypointController::~WaypointController() 46 46 { 47 for (size_t i = 0; i < this->waypoints_.size(); ++i) 48 { 49 if(this->waypoints_[i]) 50 this->waypoints_[i]->destroy(); 51 } 47 52 } 48 53
Note: See TracChangeset
for help on using the changeset viewer.