remove needless cast in CncLobbyLogic.AddChatLine

This commit is contained in:
Chris Forbes
2011-10-06 22:57:10 +13:00
parent ec8c5849eb
commit 3cf15b870a

View File

@@ -242,7 +242,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
public void AddChatLine(Color c, string from, string text) public void AddChatLine(Color c, string from, string text)
{ {
var template = chatTemplate.Clone() as ContainerWidget; var template = chatTemplate.Clone();
var nameLabel = template.GetWidget<LabelWidget>("NAME"); var nameLabel = template.GetWidget<LabelWidget>("NAME");
var timeLabel = template.GetWidget<LabelWidget>("TIME"); var timeLabel = template.GetWidget<LabelWidget>("TIME");
var textLabel = template.GetWidget<LabelWidget>("TEXT"); var textLabel = template.GetWidget<LabelWidget>("TEXT");