From 92a650c827c1bcecf400717c06dc3a4370eecbd3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 11 Oct 2011 22:29:06 -0700 Subject: Use the local variable instead of re-reading the source property --- Alc/ALu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 5dc2bc26..d5e5aae2 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -178,7 +178,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } BufferListItem = BufferListItem->next; } - if(ALSource->VirtualChannels && Device->Hrtf) + if(VirtualChannels && Device->Hrtf) ALSource->Params.DoMix = SelectHrtfMixer((ALSource->Params.Step==FRACTIONONE) ? POINT_RESAMPLER : Resampler); else -- cgit v1.2.3