Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Sound/threaded_sound_wrapper.cpp')
-rw-r--r--Source/Sound/threaded_sound_wrapper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Sound/threaded_sound_wrapper.cpp b/Source/Sound/threaded_sound_wrapper.cpp
index 49380d83..3c987a8e 100644
--- a/Source/Sound/threaded_sound_wrapper.cpp
+++ b/Source/Sound/threaded_sound_wrapper.cpp
@@ -698,11 +698,11 @@ static void ThreadedSoundLoop()
std::vector<AudioEmitter*> emitters = sound->GetActiveSounds();
- for( uint32_t i = 0; i < emitters.size(); i++ ) {
+ for(auto & emitter : emitters) {
SoundSourceInfo ss;
- strscpy(ss.name, emitters[i]->display_name.c_str(), sizeof(ss.name));
- ss.pos = emitters[i]->GetPosition();
+ strscpy(ss.name, emitter->display_name.c_str(), sizeof(ss.name));
+ ss.pos = emitter->GetPosition();
sdc.sound_source.push_back(ss);
}