Fix crash if the host force-starts a game while in the Invalid state.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
17210c1088
commit
6ae03038cf
@@ -326,7 +326,7 @@ namespace OpenRA.Mods.Common.Server
|
|||||||
return true;
|
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);
|
server.SendFluentMessageTo(conn, NoStartWithoutPlayers);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user