Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6138


Ignore:
Timestamp:
Nov 24, 2009, 3:16:12 AM (14 years ago)
Author:
landauf
Message:

removed superfluous "it" from two for loops which caused two warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/SoundManager.cc

    r6117 r6138  
    263263       
    264264        // FADE IN
    265         for (std::list<AmbientSound*>::iterator it= this->fadeInList_.begin(); it != this->fadeInList_.end(); it)
     265        for (std::list<AmbientSound*>::iterator it= this->fadeInList_.begin(); it != this->fadeInList_.end(); )
    266266        {
    267267            if ((*it)->getVolume() + this->crossFadeStep_*dt > 1.0f)
     
    278278
    279279        // FADE OUT
    280         for (std::list<AmbientSound*>::iterator it = this->fadeOutList_.begin(); it != this->fadeOutList_.end(); it)
     280        for (std::list<AmbientSound*>::iterator it = this->fadeOutList_.begin(); it != this->fadeOutList_.end(); )
    281281        {
    282282            if ((*it)->getVolume() - this->crossFadeStep_*dt < 0.0f)
Note: See TracChangeset for help on using the changeset viewer.