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