mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Fix crash due to MatchLeaderboardScore
s not having populated rulesets
This commit is contained in:
parent
35b7653290
commit
d065e32ca1
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user