Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 2, 2009, 10:30:56 AM (15 years ago)
Author:
rgrieder
Message:

Convinced HUDBar to destroy its BarColours (as they grow with each player death otherwise).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/overlays/hud/HUDBar.cc

    r5738 r5856  
    9696    {
    9797        if (this->isInitialized())
     98        {
    9899            Ogre::OverlayManager::getSingleton().destroyOverlayElement(this->bar_);
     100            for (std::vector<BarColour*>::const_iterator it = this->barColours_.begin(); it != this->barColours_.end(); )
     101                (*it++)->destroy();
     102        }
    99103    }
    100104
Note: See TracChangeset for help on using the changeset viewer.