From 9092168b386c1cc89ae2ff528ca4da7a7ad9a195 Mon Sep 17 00:00:00 2001 From: eunma Date: Sun, 14 Apr 2024 07:53:09 +0900 Subject: [PATCH] Bug fix --- Views/LeaderboardDisplay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/LeaderboardDisplay.cs b/Views/LeaderboardDisplay.cs index 2151233a..5a0c7a6f 100644 --- a/Views/LeaderboardDisplay.cs +++ b/Views/LeaderboardDisplay.cs @@ -1233,7 +1233,7 @@ private void SetPlayerInfo(string userId) { bool isCreative1 = this.StatsForm.StatLookup.TryGetValue(this.ReplaceLevelIdInShuffleShow(p1.show, p1.round), out LevelStats l1) && l1.IsCreative; bool isCreative2 = this.StatsForm.StatLookup.TryGetValue(this.ReplaceLevelIdInShuffleShow(p2.show, p2.round), out LevelStats l2) && l2.IsCreative; int result = isCreative1.CompareTo(isCreative2); - return result == 0 ? string.Compare(p1.roundDisplayName, p2.roundDisplayName, StringComparison.OrdinalIgnoreCase) : result; + return result == 0 ? string.Compare(l1?.Name ?? p1.roundDisplayName, l2?.Name ?? p2.roundDisplayName, StringComparison.OrdinalIgnoreCase) : result; }); this.playerDetails = ps.pbs; this.speedrunRank = ps.speedrunrank;