From 2d69a4682b578151fe3dd51f2f233115b5f382c0 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Sun, 6 Aug 2023 20:25:31 +0100 Subject: [PATCH] Should let the fadeout take over once the envelope has finished --- tracker/agb-tracker/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/agb-tracker/src/lib.rs b/tracker/agb-tracker/src/lib.rs index 533f6940..f0593618 100644 --- a/tracker/agb-tracker/src/lib.rs +++ b/tracker/agb-tracker/src/lib.rs @@ -237,7 +237,7 @@ impl Tracker { } if envelope_state.frame >= envelope.amount.len() { - envelope_state_option.take(); + envelope_state.frame = envelope.amount.len() - 1; } } }