Call the Update effect method for null effects

This commit is contained in:
Chris Robinson
2009-11-28 20:09:41 -08:00
parent 3ec64eb0fd
commit d930fb8d3d
+2 -4
View File
@@ -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);
}