mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +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