Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2015, 1:41:26 PM (8 years ago)
Author:
gania
Message:

fixed library dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/ActionpointController.cc

    r10872 r10875  
    3030
    3131#include "core/XMLPort.h"
    32 
    33 #include "controllers/NewHumanController.h"
     32#include <algorithm>
     33
    3434
    3535namespace orxonox
     
    295295                    for (ObjectList<Pawn>::iterator itP = ObjectList<Pawn>::begin(); itP; ++itP)
    296296                    {
    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"))
    298298                        {
    299299                            this->setProtect (static_cast<ControllableEntity*>(*itP));
Note: See TracChangeset for help on using the changeset viewer.