From 015a083ceda6f1d3c5d2eebf1b045db6f1083e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 25 May 2015 16:44:56 +0200 Subject: [PATCH] fix a possible NRE (copy and paste error) --- OpenRA.Mods.Common/Widgets/Logic/ServerBrowserLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/ServerBrowserLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/ServerBrowserLogic.cs index a00fb47a80..d7fca8b31a 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/ServerBrowserLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/ServerBrowserLogic.cs @@ -221,7 +221,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic } var maptitle = item.GetOrNull("MAP"); - if (title != null) + if (maptitle != null) { maptitle.GetText = () => map.Title; maptitle.GetColor = () => !compatible ? Color.DarkGray : !canJoin ? Color.LightGray : maptitle.TextColor;