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");