From 564e2b889c627f9039ab43b0f640326d58f13d82 Mon Sep 17 00:00:00 2001 From: Bloodbat Date: Mon, 30 Sep 2024 00:12:40 -0600 Subject: [PATCH] Fix: wrong memset size. Fix: initialization I forgot. --- src/contextus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/contextus.cpp b/src/contextus.cpp index 5e9399ac..5b9fc4f9 100644 --- a/src/contextus.cpp +++ b/src/contextus.cpp @@ -365,7 +365,7 @@ struct Contextus : SanguineModule { memset(&jitterSource[i], 0, sizeof(renaissance::VcoJitterSource)); jitterSource[i].Init(); - memset(&envelope[i], 0, sizeof(renaissance::SignatureWaveshaper)); + memset(&waveShaper[i], 0, sizeof(renaissance::SignatureWaveshaper)); waveShaper[i].Init(0x0000); memset(&settings[i], 0, sizeof(renaissance::SettingsData)); @@ -375,6 +375,7 @@ struct Contextus : SanguineModule { previousPitch[i] = 0; } + memset(&lastSettings, 0, sizeof(renaissance::SettingsData)); clockDivider.setDivision(kClockUpdateFrequency); }