Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 11, 2011, 2:20:13 PM (13 years ago)
Author:
landauf
Message:

fixed a bug which caused the application to crash if the game was ended while cross-fading ambient sound. in particular AmbientSound registered itself again at SoundManager as soon as SoundManager was deleted. added a bool to prevent this behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/sound/SoundManager.h

    r6417 r7855  
    146146        std::vector<ALuint> availableSoundSources_;
    147147        std::vector<std::pair<ALuint, BaseSound*> > usedSoundSources_;
     148       
     149        bool bDestructorCalled_; ///< Becomes true if the destructor is called - used to prevent ambient sounds from registering after the lists were cleared
    148150
    149151        static SoundManager* singletonPtr_s;
Note: See TracChangeset for help on using the changeset viewer.