1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 13:22:57 +08:00

Fix outdated scores being held by BeatmapLeaderboard after external beatmap switch

This commit is contained in:
Dean Herbert 2022-09-21 15:21:32 +09:00
parent 0996051271
commit 5b73f24864

View File

@ -41,6 +41,11 @@ namespace osu.Game.Screens.Select.Leaderboards
return;
beatmapInfo = value;
// Refetch is scheduled, which can cause scores to be outdated if the leaderboard is not currently updating.
// As scores are potentially used by other components, clear them eagerly to ensure a more correct state.
SetScores(null);
RefetchScores();
}
}