From 94779762774e724ad9e8323fd317fa52751d4463 Mon Sep 17 00:00:00 2001 From: Bloodbat Date: Mon, 30 Sep 2024 10:02:32 -0600 Subject: [PATCH] Change: init on declaration. --- src/anuli.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/anuli.cpp b/src/anuli.cpp index 58dd5ca1..bda4b5a0 100644 --- a/src/anuli.cpp +++ b/src/anuli.cpp @@ -93,8 +93,8 @@ struct Anuli : SanguineModule { rings::Part part[PORT_MAX_CHANNELS]; rings::StringSynthPart stringSynth[PORT_MAX_CHANNELS]; rings::Strummer strummer[PORT_MAX_CHANNELS]; - bool bStrum[PORT_MAX_CHANNELS]; - bool bLastStrum[PORT_MAX_CHANNELS]; + bool bStrum[PORT_MAX_CHANNELS] = {}; + bool bLastStrum[PORT_MAX_CHANNELS] = {}; int channelCount = 0; int polyphonyMode = 1; @@ -152,9 +152,6 @@ struct Anuli : SanguineModule { part[i].Init(reverbBuffer[i]); memset(&stringSynth[i], 0, sizeof(rings::StringSynthPart)); stringSynth[i].Init(reverbBuffer[i]); - - bStrum[i] = false; - bLastStrum[i] = false; } clockDivider.setDivision(kDividerFrequency);