FullscreenUI: Fix leaderboard ID/format not caching in pause menu

Icon would not be correct in some situations, and it would always
realloc.
pull/3733/head
Stenzek 2 months ago
parent 1917421f8a
commit f685648a5f
No known key found for this signature in database

@ -1032,6 +1032,8 @@ void FullscreenUI::UpdateAchievementsPauseScreenInfo()
active_lbs.erase(active_lbs.begin() + num_active_lbs, active_lbs.end());
PauseMenuLeaderboardInfo& lbinfo = active_lbs.emplace_back();
lbinfo.leaderboard_id = leaderboard->id;
lbinfo.format = leaderboard->format;
lbinfo.title = leaderboard->title;
if (leaderboard->description)
lbinfo.description = leaderboard->description;

Loading…
Cancel
Save