Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2005, 3:13:40 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: arrays of Models get stored till the end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/array.h

    r4579 r4580  
    6767  this->firstEntry = new Entry;
    6868  this->firstEntry->next =NULL;
    69   this->currentEntry=firstEntry;
     69  this->currentEntry = this->firstEntry;
    7070  this->finalized = false;
    7171  this->entryCount = 0; //0 means one entry
     
    109109    walker = walker->next;
    110110  }
     111  walker = this->firstEntry;
     112  Entry* previous;
     113  while (walker)
     114  {
     115    previous = walker;
     116    walker = walker->next;
     117    delete previous;
     118  }
     119  this->firstEntry = NULL;
    111120  this->finalized = true;
    112121}
     
    130139  }
    131140  else
    132     PRINTF(2)("adding failed, because list has been finalized\n");
     141    PRINTF(2)("adding failed, because array has already been finalized\n");
    133142}
    134143
Note: See TracChangeset for help on using the changeset viewer.