1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 16:12:54 +08:00

Fix crash due to MatchLeaderboardScores not having populated rulesets

This commit is contained in:
Dean Herbert 2022-02-02 13:23:49 +09:00
parent 35b7653290
commit d065e32ca1
2 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,7 @@ namespace osu.Game.Online.Leaderboards
private Storage storage { get; set; }
public ITooltip<ScoreInfo> GetCustomTooltip() => new LeaderboardScoreTooltip();
public ScoreInfo TooltipContent => Score;
public virtual ScoreInfo TooltipContent => Score;
public LeaderboardScore(ScoreInfo score, int? rank, bool isOnlineScope = true)
{

View File

@ -14,6 +14,8 @@ namespace osu.Game.Screens.OnlinePlay.Match.Components
{
private readonly APIUserScoreAggregate score;
public override ScoreInfo TooltipContent => null; // match aggregate scores can't show statistics that the custom tooltip displays.
public MatchLeaderboardScore(APIUserScoreAggregate score, int? rank, bool isOnlineScope = true)
: base(score.CreateScoreInfo(), rank, isOnlineScope)
{