Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2005, 12:15:55 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed the bug with the setSavePointS()-function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/track/track_manager.cc

    r4501 r4502  
    657657void TrackManager::setSavePointS(const char* nextElementName)
    658658{
    659   this->firstTrackElem->findByID(this->setSavePoint(NULL))->setName(nextElementName);
     659  this->setSavePoint(NULL);
     660  if (strcmp(nextElementName, ""))
     661    this->firstTrackElem->findByID(this->trackElemCount)->setName(nextElementName);
    660662}
    661663
     
    668670   If the HotPoint was defined as a fork the Point will \b not be set into a savePoint.
    669671*/
    670 int TrackManager::setSavePoint(TrackElement* trackElem)
     672void TrackManager::setSavePoint(TrackElement* trackElem)
    671673{
    672674  if (!trackElem)
     
    677679    {
    678680      PRINTF(2)("%d is already finished \n", trackElem->ID);
    679       return trackElem->getChild(0)->ID;
     681      return;
    680682    }
    681683  trackElem->isSavePoint = true;
Note: See TracChangeset for help on using the changeset viewer.