From 8bb2f98c6a9c4bbf265fb91737d0994dfe1f83dc Mon Sep 17 00:00:00 2001 From: LillyJadeKatrin Date: Wed, 17 Jul 2024 22:53:15 -0400 Subject: [PATCH] Properly Populate Player Index The player_index field in question is ultimately what gets used to determine which ranks get displayed in the leaderboards chart, and because this was missing the chart was simply displaying the top four results no matter what. --- Source/Core/Core/AchievementManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Core/AchievementManager.cpp b/Source/Core/Core/AchievementManager.cpp index 7dab23d5f6..b669a445b1 100644 --- a/Source/Core/Core/AchievementManager.cpp +++ b/Source/Core/Core/AchievementManager.cpp @@ -804,6 +804,8 @@ void AchievementManager::LeaderboardEntriesCallback(int result, const char* erro map_entry.username.assign(response_entry.user); memcpy(map_entry.score.data(), response_entry.display, FORMAT_SIZE); map_entry.rank = response_entry.rank; + if (ix == list->user_index) + leaderboard.player_index = response_entry.rank; } AchievementManager::GetInstance().m_update_callback({.leaderboards = {*leaderboard_id}}); }