diff options
author | Chris Robinson <[email protected]> | 2022-07-29 01:49:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-07-29 01:49:30 -0700 |
commit | 339465c91f1317f3c6f441c98658d933984a5291 (patch) | |
tree | 66067900764f88b36cfd1eb9f245082ff3e68d9e /core | |
parent | f35eb64619ae91cd786380660e3d90da18f557fb (diff) |
Use an intrusive_ptr to hold on to the EffectState
Diffstat (limited to 'core')
-rw-r--r-- | core/effectslot.h | 2 |
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}; |