From a97e6e6a125c561d0804c3b0d5976b8f18093027 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 21 Apr 2020 01:01:18 -0700 Subject: Fix the source ID for a source voice stopped from deletion --- al/source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'al/source.cpp') 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); -- cgit v1.2.3