aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index a171067a..207c7c84 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -866,7 +866,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con
* scaling.
*/
std::transform(coeffs.begin(), coeffs.end(), coeffs.begin(),
- [coverage, &scales](auto a){ return a * ((1.0f-coverage)*scales[0]); });
+ [scale=(1.0f-coverage)*scales[0]](const float c){ return c * scale; });
if(!(coverage > 0.0f))
{