diff options
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 74097d3f..f6cb6e4b 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -508,11 +508,9 @@ static ALvoid InitializeEffect(ALCcontext *Context, ALeffectslot *ALEffectSlot, ALEffectSlot->EffectState = NewState; } if(!effect) - { memset(&ALEffectSlot->effect, 0, sizeof(ALEffectSlot->effect)); - return; - } - memcpy(&ALEffectSlot->effect, effect, sizeof(*effect)); + else + memcpy(&ALEffectSlot->effect, effect, sizeof(*effect)); ALEffect_Update(ALEffectSlot->EffectState, Context, effect); } |