From a200d65c4dbfc36788fa3a7070e896a3a161a114 Mon Sep 17 00:00:00 2001 From: Hyper_ <40342021+NotHyper-474@users.noreply.github.com> Date: Tue, 13 May 2025 21:44:22 -0300 Subject: [PATCH] fix: Cleanup on LatencyState not being performed when closed/destroyed by state switch --- source/funkin/ui/debug/latency/LatencyState.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/ui/debug/latency/LatencyState.hx b/source/funkin/ui/debug/latency/LatencyState.hx index 132439eb90f..6cc6093be2f 100644 --- a/source/funkin/ui/debug/latency/LatencyState.hx +++ b/source/funkin/ui/debug/latency/LatencyState.hx @@ -179,10 +179,10 @@ class LatencyState extends MusicBeatSubState strumLine.releaseKey(event.noteDirection); } - override public function close():Void + override public function destroy():Void { cleanup(); - super.close(); + super.destroy(); } function cleanup():Void