From 067a04e0698276f9952481d326499a9cd404fc09 Mon Sep 17 00:00:00 2001 From: VioletSnowLeopard Date: Wed, 7 May 2025 23:24:57 -0400 Subject: [PATCH] Remove this unnecessary line `curSelected` is always set to 0 directly above this --- source/funkin/ui/freeplay/FreeplayState.hx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/funkin/ui/freeplay/FreeplayState.hx b/source/funkin/ui/freeplay/FreeplayState.hx index a2893bf70..081e1bedc 100644 --- a/source/funkin/ui/freeplay/FreeplayState.hx +++ b/source/funkin/ui/freeplay/FreeplayState.hx @@ -833,10 +833,6 @@ class FreeplayState extends MusicBeatSubState currentFilteredSongs = tempSongs; curSelected = 0; - // If curSelected is 0, the result will be null and fall back to the rememberedSongId. - // We set this so if we change the filter, we'd remain on the same song if it's still in the list. - rememberedSongId = grpCapsules.members[curSelected]?.freeplayData?.data.id ?? rememberedSongId; - grpCapsules.killMembers(); // Initialize the random capsule, with empty/blank info (which we display once bf/pico does his hand)