Changeset 11083 for code/trunk/src/orxonox/controllers/WingmanController.cc
- Timestamp:
- Jan 21, 2016, 1:59:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/WingmanController.cc
r11071 r11083 58 58 void WingmanController::action() 59 59 { 60 if (!this || !this->getControllableEntity() || !this->isActive())60 if (!this->getControllableEntity() || !this->isActive()) 61 61 return; 62 62 //----If no leader, find one---- … … 64 64 { 65 65 ActionpointController* newLeader = (findNewLeader()); 66 if (!this || !this->getControllableEntity())67 return;68 66 69 67 this->myLeader_ = newLeader; … … 92 90 else if (!this->myLeader_->bKeepFormation_) 93 91 { 94 if (!this || !this->getControllableEntity())95 return;96 92 97 93 if (!this->hasTarget())
Note: See TracChangeset
for help on using the changeset viewer.