aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-23 14:42:02 -0800
committerChris Robinson <[email protected]>2018-11-23 14:42:02 -0800
commit73528c9f550c7df6b1e0f2b54e61c02bf7eac00a (patch)
treedadac8dfeadcf4f4f8ab5b4ab5c0329030e01d82 /OpenAL32
parentfb94cdcfd3bf032d2c8783d931a78e188ac55e15 (diff)
Fix an incorrect check
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index df2de67c..30629c29 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -2890,7 +2890,7 @@ AL_API ALvoid AL_APIENTRY alSourcePausev(ALsizei n, const ALuint *sources)
{
ALsource *source{LookupSource(context.get(), sources[i])};
ALvoice *voice{GetSourceVoice(source, context.get())};
- if(!voice) voice->Playing.store(false, std::memory_order_release);
+ if(voice) voice->Playing.store(false, std::memory_order_release);
if(GetSourceState(source, voice) == AL_PLAYING)
{
source->state = AL_PAUSED;