- Timestamp:
- Nov 27, 2015, 1:41:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/ActionpointController.cc
r10872 r10875 30 30 31 31 #include "core/XMLPort.h" 32 33 #include "controllers/NewHumanController.h" 32 #include <algorithm> 33 34 34 35 35 namespace orxonox … … 295 295 for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn>::begin(); itP; ++itP) 296 296 { 297 if (orxonox_cast<ControllableEntity*>(*itP) && ((*itP)->getController()) && orxonox_cast <NewHumanController*> ((*itP)->getController()))297 if (orxonox_cast<ControllableEntity*>(*itP) && ((*itP)->getController()) && ((*itP)->getController()->getIdentifier()->getName() == "NewHumanController")) 298 298 { 299 299 this->setProtect (static_cast<ControllableEntity*>(*itP));
Note: See TracChangeset
for help on using the changeset viewer.