From 364850e8f9a224144c91c7b562d44321b7aa4505 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 30 Nov 2018 10:08:18 -0800 Subject: Move a variable declaration to a more appropriate place --- OpenAL32/alSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32/alSource.cpp') diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index 0eaed61f..c0e48c5c 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -52,9 +52,9 @@ namespace { inline ALvoice *GetSourceVoice(ALsource *source, ALCcontext *context) { ALint idx{source->VoiceIdx}; - ALuint sid{source->id}; if(idx >= 0 && idx < context->VoiceCount.load(std::memory_order_relaxed)) { + ALuint sid{source->id}; ALvoice *voice{context->Voices[idx]}; if(voice->SourceID.load(std::memory_order_acquire) == sid) return voice; -- cgit v1.2.3