From b17a14ccc2723e8dcc95ed8c84f51e83212671ce Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 20 Sep 2016 06:32:45 -0400 Subject: [PATCH] Nested loop should use a different index variable... ... but there was not a bug here, because of the return. --- src/effects/nyquist/Nyquist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index 4c197c2ae..7d16e26ce 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -1208,8 +1208,8 @@ bool NyquistEffect::ProcessOne() wxMessageBox(_("Nyquist did not return audio.\n"), wxT("Nyquist"), wxOK | wxCENTRE, mUIParent); - for (i = 0; i < outChannels; i++) { - mOutputTrack[i].reset(); + for (int j = 0; j < outChannels; j++) { + mOutputTrack[j].reset(); } return true; }