mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Avoid adding null users to RecentParticipants
This commit is contained in:
parent
1bfa1365a0
commit
135df0e190
@ -401,7 +401,11 @@ namespace osu.Game.Online.Multiplayer
|
||||
{
|
||||
Debug.Assert(APIRoom != null);
|
||||
|
||||
APIRoom.RecentParticipants.Add(user.User);
|
||||
APIRoom.RecentParticipants.Add(user.User ?? new User
|
||||
{
|
||||
Id = user.UserID,
|
||||
Username = "[Unresolved]"
|
||||
});
|
||||
APIRoom.ParticipantCount.Value++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user