Code cleanup.

This commit is contained in:
Matthias Mailänder
2022-02-12 17:50:49 +01:00
committed by teinarss
parent 7735107deb
commit ee95d2591f
5 changed files with 6 additions and 7 deletions

View File

@@ -1076,7 +1076,7 @@ namespace OpenRA.Server
{
Conns.Remove(toDrop);
var dropClient = LobbyInfo.Clients.FirstOrDefault(c1 => c1.Index == toDrop.PlayerIndex);
var dropClient = LobbyInfo.Clients.FirstOrDefault(c => c.Index == toDrop.PlayerIndex);
if (dropClient == null)
{
toDrop.Dispose();