Changeset 7856 for code/trunk/src/orxonox/sound/SoundManager.cc
- Timestamp:
- Feb 11, 2011, 4:05:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/sound/SoundManager.cc
r7855 r7856 241 241 if (state == AL_STOPPED) 242 242 { 243 this->usedSoundSources_[i].second->stop();244 --i;243 if (this->usedSoundSources_[i].second->stop()) // if stop() returns true, the sound source was removed, thus decrement the array index 244 --i; 245 245 } 246 246 }
Note: See TracChangeset
for help on using the changeset viewer.