aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcDedicated.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-05-21 17:45:54 -0700
committerChris Robinson <[email protected]>2011-05-21 17:45:54 -0700
commita9d9553fff7f3ec571770a9b4a22c5a46f91780f (patch)
tree7b6e545b9dd1f5544975936cef8daf014af7656d /Alc/alcDedicated.c
parent5cdf774ea7d8ad8e9a6316401e39647040761a3a (diff)
Use a multi-dimensional array for the panning LUT
Diffstat (limited to 'Alc/alcDedicated.c')
-rw-r--r--Alc/alcDedicated.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alcDedicated.c b/Alc/alcDedicated.c
index 0b9d8419..6bab83e5 100644
--- a/Alc/alcDedicated.c
+++ b/Alc/alcDedicated.c
@@ -59,7 +59,7 @@ static ALvoid DedicatedDLGUpdate(ALeffectState *effect, ALCcontext *Context, con
ALsizei s;
pos = aluCart2LUTpos(1.0f, 0.0f);
- SpeakerGain = &device->PanningLUT[MAXCHANNELS * pos];
+ SpeakerGain = device->PanningLUT[pos];
for(s = 0;s < MAXCHANNELS;s++)
state->gains[s] = SpeakerGain[s] * Effect->Params.Dedicated.Gain;