mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Ensure all users are shown on leaderboard (even when API lookup fails)
This commit is contained in:
parent
577e29351e
commit
0ba95a4483
@ -89,10 +89,13 @@ namespace osu.Game.Screens.Play.HUD
|
||||
{
|
||||
var users = task.GetResultSafely();
|
||||
|
||||
foreach (var user in users)
|
||||
for (int i = 0; i < users.Length; i++)
|
||||
{
|
||||
if (user == null)
|
||||
continue;
|
||||
var user = users[i] ??= new APIUser
|
||||
{
|
||||
Id = playingUsers[i].UserID,
|
||||
Username = "Unknown user",
|
||||
};
|
||||
|
||||
var trackedUser = UserScores[user.Id];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user