[Cleanup] cleaned a null checking if-statement for the lobby id
This commit is contained in:
@@ -193,8 +193,8 @@ namespace Client
|
|||||||
foreach (var item in Lobbies)
|
foreach (var item in Lobbies)
|
||||||
{
|
{
|
||||||
Debug.WriteLine("[CLIENT] lobby data: {0}", item.Users.Count);
|
Debug.WriteLine("[CLIENT] lobby data: {0}", item.Users.Count);
|
||||||
if (data.Lobby != null && item.ID == data.Lobby.ID)
|
if (item.ID == data.Lobby?.ID)
|
||||||
ViewModels.ViewModelGame.HandleIncomingPlayer(item);
|
IncomingPlayer?.Invoke(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user