aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-07-15 04:28:13 -0700
committerChris Robinson <[email protected]>2022-07-15 04:28:13 -0700
commit0b9fc03545f7418be89bb9a8901b342ce84a5f67 (patch)
tree38e5cbf58a3444938116867a8c78e7fc6f7d280b /al/source.cpp
parent07c2e786f5959f15c50f380f347d345e59218af2 (diff)
Dynamically allocate EffectSlot objects
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp
index 88eeba99..e5241a39 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -160,7 +160,7 @@ void UpdateSourceProps(const ALsource *source, Voice *voice, ALCcontext *context
auto copy_send = [](const ALsource::SendData &srcsend) noexcept -> VoiceProps::SendData
{
VoiceProps::SendData ret{};
- ret.Slot = srcsend.Slot ? &srcsend.Slot->mSlot : nullptr;
+ ret.Slot = srcsend.Slot ? srcsend.Slot->mSlot : nullptr;
ret.Gain = srcsend.Gain;
ret.GainHF = srcsend.GainHF;
ret.HFReference = srcsend.HFReference;
@@ -170,7 +170,7 @@ void UpdateSourceProps(const ALsource *source, Voice *voice, ALCcontext *context
};
std::transform(source->Send.cbegin(), source->Send.cend(), props->Send, copy_send);
if(!props->Send[0].Slot && context->mDefaultSlot)
- props->Send[0].Slot = &context->mDefaultSlot->mSlot;
+ props->Send[0].Slot = context->mDefaultSlot->mSlot;
/* Set the new container for updating internal parameters. */
props = voice->mUpdate.exchange(props, std::memory_order_acq_rel);