diff options
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r-- | al/auxeffectslot.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index 80b4bb16..ed8fb6f1 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -911,8 +911,7 @@ ALenum ALeffectslot::init() EffectStateFactory *factory{getFactoryByType(Effect.Type)}; if(!factory) return AL_INVALID_VALUE; - Effect.State.reset(factory->create()); - if(!Effect.State) return AL_OUT_OF_MEMORY; + Effect.State = factory->create(); Effect.State->add_ref(); mSlot.mEffectState = Effect.State.get(); |