diff options
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r-- | Alc/panning.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp index 60436e02..25b940a2 100644 --- a/Alc/panning.cpp +++ b/Alc/panning.cpp @@ -626,8 +626,7 @@ void InitHrtfPanning(ALCdevice *device) AmbiMatrix, static_cast<ALsizei>(COUNTOF(AmbiPoints)), AmbiOrderHFGain); HrtfEntry *Hrtf{device->mHrtf}; - const auto &field = Hrtf->field[Hrtf->fdCount-1]; - InitNearFieldCtrl(device, field.distance, ambi_order, ChansPerOrder); + InitNearFieldCtrl(device, Hrtf->field[0].distance, ambi_order, ChansPerOrder); } void InitUhjPanning(ALCdevice *device) |