From f6d97efe55f1424612d482570c757d12842d95b3 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 20 Jul 2024 10:35:54 +0200 Subject: [PATCH] WDSP: fixed Sonar bug issue --- wdsp/cfcomp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wdsp/cfcomp.cpp b/wdsp/cfcomp.cpp index 64a9e3157..ea6efd4db 100644 --- a/wdsp/cfcomp.cpp +++ b/wdsp/cfcomp.cpp @@ -437,7 +437,7 @@ void CFCOMP::SetCFCOMPPosition (TXA& txa, int pos) void CFCOMP::SetCFCOMPprofile (TXA& txa, int nfreqs, float* F, float* G, float *E) { CFCOMP *a = txa.cfcomp.p; - a->nfreqs = nfreqs; + a->nfreqs = nfreqs < 1 ? 1 : nfreqs; delete[] (a->E); delete[] (a->F); delete[] (a->G);