From 6ae03038cfc281f1066add599bf73cd1a14118ca Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 27 Dec 2025 19:17:39 +0000 Subject: [PATCH] Fix crash if the host force-starts a game while in the Invalid state. --- OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs index 52b5b0f1cf..cd664c591e 100644 --- a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs +++ b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs @@ -326,7 +326,7 @@ namespace OpenRA.Mods.Common.Server return true; } - if (server.LobbyInfo.Slots.All(sl => server.LobbyInfo.ClientInSlot(sl.Key) == null)) + if (server.LobbyInfo.Slots.All(sl => server.LobbyInfo.ClientInSlot(sl.Key)?.State is null or Session.ClientState.Invalid)) { server.SendFluentMessageTo(conn, NoStartWithoutPlayers); return true;