aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/MemlessPoly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp
index 2a16ebe..ba603cb 100644
--- a/src/MemlessPoly.cpp
+++ b/src/MemlessPoly.cpp
@@ -149,7 +149,7 @@ static void apply_coeff(
float in_1_8 = in_1_4 * in_1_4;
float in_1_10 = in_1_6 * in_1_4;
- float in_2_mag = std::abs(in[i]);
+ float in_2_mag = std::abs(in[i+1]);
float in_2_2 = in_2_mag * in_2_mag;
float in_2_4 = in_2_2 * in_2_2;
float in_2_6 = in_2_2 * in_2_4;