Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10411 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Jan 27, 2007, 7:37:09 PM (18 years ago)
Author:
patrick
Message:

fixed a bug causing the camman to segfault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/cameraman.cc

    r10409 r10411  
    6363  BaseObject::loadParams(root);
    6464  const TiXmlElement* camerasTag = root->FirstChildElement("Cameras");
    65 
    66   LOAD_PARAM_START_CYCLE(camerasTag, object);
    67   {
    68     this->createCam(object);
    69   }
    70   LOAD_PARAM_END_CYCLE(object);
     65  if( camerasTag != NULL)
     66  {
     67    LOAD_PARAM_START_CYCLE(camerasTag, object);
     68    {
     69      this->createCam(object);
     70    }
     71    LOAD_PARAM_END_CYCLE(object);
     72  }
    7173
    7274}
     
    169171  BaseObject* object = ObjectListBase::getBaseObject(className, targetEntity);
    170172
    171   if(object != NULL) 
     173  if(object != NULL)
    172174  {
    173175   this->atachCurrTarget(dynamic_cast<PNode*>(object));
Note: See TracChangeset for help on using the changeset viewer.