mirror of
https://github.com/ppy/osu.git
synced 2026-05-28 03:01:17 +08:00
Fix crash due to MatchLeaderboardScores not having populated rulesets
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user