Leaderboard should not change the model

This commit is contained in:
smoogipoo
2020-01-06 17:32:24 +09:00
parent 4a7f5f98df
commit 61c269b17b
2 changed files with 19 additions and 10 deletions

View File

@ -186,15 +186,10 @@ namespace osu.Game.Screens.Select.Leaderboards
return req;
}
protected override LeaderboardScore CreateDrawableScore(ScoreInfo model, int index)
protected override LeaderboardScore CreateDrawableScore(ScoreInfo model, int index) => new LeaderboardScore(model, index, IsOnlineScope)
{
model.Beatmap = beatmap;
return new LeaderboardScore(model, index, IsOnlineScope)
{
Action = () => ScoreSelected?.Invoke(model)
};
}
Action = () => ScoreSelected?.Invoke(model)
};
protected override void Dispose(bool isDisposing)
{