avoid exploding in UnitOrders.cs
This commit is contained in:
@@ -33,7 +33,9 @@ namespace OpenRA.Network
|
|||||||
case "Chat":
|
case "Chat":
|
||||||
{
|
{
|
||||||
var client = Game.LobbyInfo.Clients.FirstOrDefault(c => c.Index == clientId);
|
var client = Game.LobbyInfo.Clients.FirstOrDefault(c => c.Index == clientId);
|
||||||
Game.AddChatLine(Game.world.PlayerColors()[client.PaletteIndex].Color, client.Name, order.TargetString);
|
if (client != null)
|
||||||
|
Game.AddChatLine(Game.world.PlayerColors()[client.PaletteIndex].Color,
|
||||||
|
client.Name, order.TargetString);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "TeamChat":
|
case "TeamChat":
|
||||||
|
|||||||
Reference in New Issue
Block a user