quick hack around the teamchat crash in lobby

This commit is contained in:
Chris Forbes
2010-10-12 21:19:27 +13:00
parent 6b6c9639f9
commit 7c31f72db6

View File

@@ -46,6 +46,8 @@ namespace OpenRA.Network
{ {
var client = orderManager.LobbyInfo.ClientWithIndex(clientId); var client = orderManager.LobbyInfo.ClientWithIndex(clientId);
if (client != null) if (client != null)
{
if (world != null) // TODO: fix this whole thing properly. this is BS.
{ {
var player = world.FindPlayerByClientId(clientId); var player = world.FindPlayerByClientId(clientId);
var display = player != null var display = player != null
@@ -58,6 +60,7 @@ namespace OpenRA.Network
Game.AddChatLine(client.Color1, client.Name + suffix, order.TargetString); Game.AddChatLine(client.Color1, client.Name + suffix, order.TargetString);
} }
} }
}
break; break;
} }
case "StartGame": case "StartGame":