Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5289 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Oct 6, 2005, 11:20:24 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: hups… so much for copy/paste code…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine.cc

    r5288 r5289  
    814814  // first remove all the remaining Texts (if any).
    815815  tList<BaseObject>* textList = ClassList::getList(CL_TEXT);
    816   tIterator<BaseObject>* textIterator = textList->getIterator();
    817   Text* text = dynamic_cast<Text*>(textIterator->firstElement());
    818   while( text != NULL)
     816  if (text != NULL)
    819817  {
    820     delete text;
    821     text = dynamic_cast<Text*>(textIterator->nextElement());
    822   }
    823   delete textIterator;
    824   PRINT(0)("+---------------------------TE--+\n");
    825 
     818    tIterator<BaseObject>* textIterator = textList->getIterator();
     819    Text* text = dynamic_cast<Text*>(textIterator->firstElement());
     820    while( text != NULL)
     821    {
     822      delete text;
     823      text = dynamic_cast<Text*>(textIterator->nextElement());
     824    }
     825    delete textIterator;
     826  }
    826827  // delete all remaining fonts (this is done in the ResourceManager)
    827828  tList<BaseObject>* fontList = ClassList::getList(CL_FONT);
Note: See TracChangeset for help on using the changeset viewer.