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:
parent
0996051271
commit
5b73f24864
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user