From 3cf15b870a8228fe33d382b20d771ff6a694b245 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 6 Oct 2011 22:57:10 +1300 Subject: [PATCH] remove needless cast in CncLobbyLogic.AddChatLine --- OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs b/OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs index 2f1d815249..5dddda3ecd 100644 --- a/OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs +++ b/OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs @@ -242,7 +242,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic public void AddChatLine(Color c, string from, string text) { - var template = chatTemplate.Clone() as ContainerWidget; + var template = chatTemplate.Clone(); var nameLabel = template.GetWidget("NAME"); var timeLabel = template.GetWidget("TIME"); var textLabel = template.GetWidget("TEXT");