fix a possible NRE (copy and paste error)

This commit is contained in:
Matthias Mailänder
2015-05-25 16:44:56 +02:00
parent c7dc3737b1
commit 015a083ced

View File

@@ -221,7 +221,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
}
var maptitle = item.GetOrNull<LabelWidget>("MAP");
if (title != null)
if (maptitle != null)
{
maptitle.GetText = () => map.Title;
maptitle.GetColor = () => !compatible ? Color.DarkGray : !canJoin ? Color.LightGray : maptitle.TextColor;