1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Avoid adding null users to RecentParticipants

This commit is contained in:
Dean Herbert 2021-11-02 16:51:42 +09:00
parent 1bfa1365a0
commit 135df0e190

View File

@ -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++;
}