mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 13:33:03 +08:00
Merge pull request #1521 from EVAST9919/leaderboard_fix
Fix incorrect scores indexes in leaderboard
This commit is contained in:
commit
8df0227bbc
@ -64,7 +64,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Spacing = new Vector2(0f, 5f),
|
Spacing = new Vector2(0f, 5f),
|
||||||
Padding = new MarginPadding { Top = 10, Bottom = 5 },
|
Padding = new MarginPadding { Top = 10, Bottom = 5 },
|
||||||
ChildrenEnumerable = scores.Select(s => new LeaderboardScore(s, 1 + i) { Action = () => ScoreSelected?.Invoke(s) })
|
ChildrenEnumerable = scores.Select((s, index) => new LeaderboardScore(s, index + 1) { Action = () => ScoreSelected?.Invoke(s) })
|
||||||
}, f =>
|
}, f =>
|
||||||
{
|
{
|
||||||
scrollFlow?.Expire();
|
scrollFlow?.Expire();
|
||||||
|
Loading…
Reference in New Issue
Block a user