- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/orxonox/controllers/ActionpointController.cc
r11052 r11054 506 506 if (targetName == "") 507 507 break; 508 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn> ::begin(); itP; ++itP)508 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn>().begin(); itP; ++itP) 509 509 { 510 510 if (!this || !this->getControllableEntity()) … … 541 541 if (protectName == "reservedKeyword:human") 542 542 { 543 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn> ::begin(); itP; ++itP)543 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn>().begin(); itP; ++itP) 544 544 { 545 545 if (orxonox_cast<ControllableEntity*>(*itP) && ((*itP)->getController()) && ((*itP)->getController()->getIdentifier()->getName() == "NewHumanController")) … … 551 551 else 552 552 { 553 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn> ::begin(); itP; ++itP)553 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn>().begin(); itP; ++itP) 554 554 { 555 555 if (CommonController::getName(*itP) == protectName) … … 578 578 std::string targetName = p.name; 579 579 580 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn> ::begin(); itP; ++itP)580 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn>().begin(); itP; ++itP) 581 581 { 582 582 if (CommonController::getName(*itP) == targetName) … … 707 707 float minDistance = std::numeric_limits<float>::infinity(); 708 708 Gametype* gt = this->getGametype(); 709 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn> ::begin(); itP; ++itP)709 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn>().begin(); itP; ++itP) 710 710 { 711 711 if (!this || !this->getControllableEntity())
Note: See TracChangeset
for help on using the changeset viewer.