Fix the source ID for a source voice stopped from deletion

This commit is contained in:
Chris Robinson 2020-04-21 01:01:18 -07:00
parent 552d2b1918
commit a97e6e6a12

View File

@ -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);