From d930fb8d3dbc3bf49a5b1db919448c7e962dca2a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 28 Nov 2009 20:09:41 -0800 Subject: Call the Update effect method for null effects --- OpenAL32/alAuxEffectSlot.c | 6 ++---- 1 file 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); } -- cgit v1.2.3