Fix getting max magnitude in AudioEffectSpectrumAnalyzer

(cherry picked from commit 47f628a013)
This commit is contained in:
Martin Dahlgren 2019-05-20 23:51:01 +02:00 committed by Rémi Verschelde
parent 949e1da462
commit bfcb9dfa01
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ Vector2 AudioEffectSpectrumAnalyzerInstance::get_magnitude_for_frequency_range(f
for (int i = begin_pos; i <= end_pos; i++) {
max.x = MAX(max.x, r[i].l);
max.y = MAX(max.x, r[i].r);
max.y = MAX(max.y, r[i].r);
}
return max;