Merge pull request #3127 from Mailaender/teamchat-nre

fix NullReferenceException when watching replays with team chat
This commit is contained in:
Chris Forbes
2013-04-20 16:52:08 -07:00

View File

@@ -70,7 +70,7 @@ namespace OpenRA.Network
{
if (world == null)
{
if (client.Team == orderManager.LocalClient.Team)
if (orderManager.LocalClient != null && client.Team == orderManager.LocalClient.Team)
Game.AddChatLine(client.ColorRamp.GetColor(0), client.Name + " (Team)",
order.TargetString);
}