Fix crash if the host force-starts a game while in the Invalid state.

This commit is contained in:
Paul Chote
2025-12-27 19:17:39 +00:00
committed by Gustas Kažukauskas
parent 17210c1088
commit 6ae03038cf

View File

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