From 8ca8da30bd587cefcd86e3a2b9401821af65e502 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 29 Nov 2018 22:49:01 -0800 Subject: Store the source ID with the voice instead of the source pointer --- Alc/alc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/alc.cpp') diff --git a/Alc/alc.cpp b/Alc/alc.cpp index aa786244..d8e35d29 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -2332,7 +2332,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) { al_free(voice->Update.exchange(nullptr, std::memory_order_acq_rel)); - if(voice->Source.load(std::memory_order_acquire) == nullptr) + if(voice->SourceID.load(std::memory_order_acquire) == 0u) return; if(device->AvgSpeakerDist > 0.0f) -- cgit v1.2.3