aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-07-29 01:49:30 -0700
committerChris Robinson <[email protected]>2022-07-29 01:49:30 -0700
commit339465c91f1317f3c6f441c98658d933984a5291 (patch)
tree66067900764f88b36cfd1eb9f245082ff3e68d9e /core
parentf35eb64619ae91cd786380660e3d90da18f557fb (diff)
Use an intrusive_ptr to hold on to the EffectState
Diffstat (limited to 'core')
-rw-r--r--core/effectslot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/effectslot.h b/core/effectslot.h
index affbccb0..2624ae5f 100644
--- a/core/effectslot.h
+++ b/core/effectslot.h
@@ -68,7 +68,7 @@ struct EffectSlot {
EffectSlotType EffectType{EffectSlotType::None};
EffectProps mEffectProps{};
- EffectState *mEffectState{nullptr};
+ al::intrusive_ptr<EffectState> mEffectState;
float RoomRolloff{0.0f}; /* Added to the source's room rolloff, not multiplied. */
float DecayTime{0.0f};