aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-29 22:49:01 -0800
committerChris Robinson <[email protected]>2018-11-29 22:49:01 -0800
commit8ca8da30bd587cefcd86e3a2b9401821af65e502 (patch)
tree98a2d891a18bc93b11516b27ddbc98d4d605e1ff /Alc/alc.cpp
parent0d2bbe17f2401feeae02972d927a8b72a4c28500 (diff)
Store the source ID with the voice instead of the source pointer
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp2
1 files changed, 1 insertions, 1 deletions
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)