fix NullReferenceException when watching replays with team chat
closes #3084
This commit is contained in:
@@ -70,7 +70,7 @@ namespace OpenRA.Network
|
|||||||
{
|
{
|
||||||
if (world == null)
|
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)",
|
Game.AddChatLine(client.ColorRamp.GetColor(0), client.Name + " (Team)",
|
||||||
order.TargetString);
|
order.TargetString);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user