fix crash on server overfill, fix another problem preventing spec slots from autofilling

This commit is contained in:
Chris Forbes
2010-12-19 18:32:56 +13:00
parent 7c76b25a44
commit c99f89c987
2 changed files with 6 additions and 3 deletions

View File

@@ -285,7 +285,7 @@ namespace OpenRA.Mods.RA.Server
};
var slotData = server.lobbyInfo.Slots.FirstOrDefault( x => x.Index == client.Slot );
if (slotData != null)
if (slotData != null && slotData.MapPlayer != null)
SyncClientToPlayerReference(client, server.Map.Players[slotData.MapPlayer]);
server.lobbyInfo.Clients.Add(client);