aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
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;