- Timestamp:
- Jan 17, 2016, 1:59:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3/src/orxonox/controllers/DivisionController.cc
r11058 r11065 40 40 RegisterObject(DivisionController); 41 41 this->setFormationMode(FormationMode::DIAMOND); 42 this->target_ = 0;43 this->myFollower_ = 0;44 this->myWingman_ = 0;42 this->target_ = nullptr; 43 this->myFollower_ = nullptr; 44 this->myWingman_ = nullptr; 45 45 } 46 46 47 47 DivisionController::~DivisionController() 48 48 { 49 for ( size_t i = 0; i < this->actionpoints_.size(); ++i)49 for (WorldEntity* actionpoint : this->actionpoints_) 50 50 { 51 if (this->actionpoints_[i])52 this->actionpoints_[i]->destroy();51 if (actionpoint) 52 actionpoint->destroy(); 53 53 } 54 54 this->parsedActionpoints_.clear();
Note: See TracChangeset
for help on using the changeset viewer.