Changeset 9663 for code/trunk/src/orxonox/controllers
- Timestamp:
- Aug 25, 2013, 10:03:25 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/FormationController.cc
r9625 r9663 542 542 if (!this->slaves_.empty()) 543 543 { 544 545 546 547 548 544 std::vector<FormationController*>::iterator it2 = std::find(this->slaves_.begin(), this->slaves_.end(), newMaster); 545 if (it2 != this->slaves_.end()) 546 { 547 this->slaves_.erase(it2); 548 } 549 549 550 550 newMaster->state_ = MASTER;
Note: See TracChangeset
for help on using the changeset viewer.