From 949195fb9cc4add7b5ec3b6ff5f4b36bb3bd67bc Mon Sep 17 00:00:00 2001 From: AbnormalPoof Date: Sun, 23 Nov 2025 18:05:07 -0600 Subject: [PATCH] Get the first owned character ID and use that for results --- source/funkin/ui/debug/results/ResultsDebugSubState.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/funkin/ui/debug/results/ResultsDebugSubState.hx b/source/funkin/ui/debug/results/ResultsDebugSubState.hx index 0a673679e..15059d96c 100644 --- a/source/funkin/ui/debug/results/ResultsDebugSubState.hx +++ b/source/funkin/ui/debug/results/ResultsDebugSubState.hx @@ -5,6 +5,7 @@ import funkin.ui.MenuList.MenuTypedList; import funkin.ui.MenuList.MenuTypedItem; import flixel.text.FlxText; import funkin.data.freeplay.player.PlayerRegistry; +import funkin.ui.freeplay.charselect.PlayableCharacter; import funkin.ui.options.items.CheckboxPreferenceItem; import flixel.util.FlxTimer; import flixel.tweens.FlxTween; @@ -55,7 +56,8 @@ class ResultsDebugSubState extends MusicBeatSubState }); }); createToggleListItem("Character", PlayerRegistry.instance.listEntryIds(), function(result:String) { - resultsParams.characterId = result; + var playableCharacter:PlayableCharacter = PlayerRegistry.instance.fetchEntry(result); + resultsParams.characterId = playableCharacter.getOwnedCharacterIds()[0]; }); createToggleListItem("Results Mode", ["Debug", "Story", "Freeplay"], function(result:String) { returnToDebugScreen = result == "Debug"; // We will create the ResultsState as a Substate, that we will just close and return back to here