aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-04-21 01:01:18 -0700
committerChris Robinson <[email protected]>2020-04-21 01:01:18 -0700
commita97e6e6a125c561d0804c3b0d5976b8f18093027 (patch)
treed6dabb157a228a68dcee138832792a42a825ceea /al/source.cpp
parent552d2b19180d4041067362507075ff44ff04b91f (diff)
Fix the source ID for a source voice stopped from deletion
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/al/source.cpp b/al/source.cpp
index 7d32de34..fedf98c4 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -738,7 +738,7 @@ void FreeSource(ALCcontext *context, ALsource *source)
voice->mPendingChange.store(true, std::memory_order_relaxed);
vchg->mVoice = voice;
- vchg->mSourceID = id;
+ vchg->mSourceID = source->id;
vchg->mState = AL_STOPPED;
SendVoiceChanges(context, vchg);