mirror of
https://github.com/osukey/osukey.git
synced 2025-06-25 05:07:59 +09:00
Fix wrong index offset
This commit is contained in:
parent
8e806cd11c
commit
13cc1fcc92
@ -87,6 +87,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
private void showHistoryRankTexts(int dayIndex)
|
private void showHistoryRankTexts(int dayIndex)
|
||||||
{
|
{
|
||||||
rankText.Text = $"#{ranks[dayIndex]:#,0}";
|
rankText.Text = $"#{ranks[dayIndex]:#,0}";
|
||||||
|
dayIndex++;
|
||||||
relativeText.Text = dayIndex == ranks.Length ? "Now" : $"{ranks.Length - dayIndex} days ago";
|
relativeText.Text = dayIndex == ranks.Length ? "Now" : $"{ranks.Length - dayIndex} days ago";
|
||||||
//plural should be handled in a general way
|
//plural should be handled in a general way
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user