mirror of https://github.com/ppy/osu
Fix wrong index offset
This commit is contained in:
parent
8e806cd11c
commit
13cc1fcc92
|
@ -87,6 +87,7 @@ private void updateRankTexts()
|
||||||
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…
Reference in New Issue