From b05ee80d5c2abf18b26788b7b01ef0ab41230c0f Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 3 Jan 2021 13:18:58 +0000 Subject: [PATCH] Remove first-client check from LobbySettingsNotification. ClientWithIndex may rarely be null, causing a crash. In any case we do want to report these changes to the first client, as somebody else may have changed the settings and left. --- OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs b/OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs index a99f517538..17cf1e8559 100644 --- a/OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs +++ b/OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs @@ -22,9 +22,6 @@ namespace OpenRA.Mods.Common.Server { lock (server.LobbyInfo) { - if (server.LobbyInfo.ClientWithIndex(conn.PlayerIndex).IsAdmin) - return; - var defaults = new Session.Global(); LobbyCommands.LoadMapSettings(server, defaults, server.Map.Rules);