From 0dd11a8e3c26674f943a57259d33ddbfd6081039 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 16 Sep 2022 14:46:18 -0700 Subject: Correctly check if a multi-channel decoder is set --- alc/panning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc') diff --git a/alc/panning.cpp b/alc/panning.cpp index ddbefd52..6447f0f8 100644 --- a/alc/panning.cpp +++ b/alc/panning.cpp @@ -978,7 +978,7 @@ void aluInitRenderer(ALCdevice *device, int hrtf_id, al::optionalgetConfigValueBool(nullptr, "front-stablizer", 0) != 0}; const bool hqdec{device->getConfigValueBool("decoder", "hq-mode", 1) != 0}; InitPanning(device, hqdec, stablize, decoder); - if(decoder.mOrder > 0) + if(decoder) { float accum_dist{0.0f}, spkr_count{0.0f}; for(auto dist : speakerdists) -- cgit v1.2.3