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()