From 113bcebf355f3d58335dd59915c422206d8af465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 25 May 2015 17:46:34 +0200 Subject: [PATCH] remove unneccesary null check --- OpenRA.Mods.Common/EditorBrushes/EditorResourceBrush.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/EditorBrushes/EditorResourceBrush.cs b/OpenRA.Mods.Common/EditorBrushes/EditorResourceBrush.cs index 1f1bc79715..bfd73fe4f6 100644 --- a/OpenRA.Mods.Common/EditorBrushes/EditorResourceBrush.cs +++ b/OpenRA.Mods.Common/EditorBrushes/EditorResourceBrush.cs @@ -98,7 +98,7 @@ namespace OpenRA.Mods.Common.Widgets if (!ResourceType.AllowedTerrainTypes.Contains(terrainType.Type)) return false; - return ResourceType.AllowOnRamps || tileInfo == null || tileInfo.RampType == 0; + return ResourceType.AllowOnRamps || tileInfo.RampType == 0; } public void Tick()