From c09e4ff5417c747a38057e6e5702850384c5e232 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 11 Dec 2013 23:13:46 +1300 Subject: [PATCH] Fixes #4269. --- OpenRA.Editor/BrushTool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Editor/BrushTool.cs b/OpenRA.Editor/BrushTool.cs index bee1330293..9028eccc5a 100644 --- a/OpenRA.Editor/BrushTool.cs +++ b/OpenRA.Editor/BrushTool.cs @@ -42,7 +42,7 @@ namespace OpenRA.Editor if (surface.Map.IsInMap(new CVec(u, v) + pos)) { var z = u + v * template.Size.X; - if (tile[z] != null) + if (tile[z].Length > 0) surface.Map.MapTiles.Value[u + pos.X, v + pos.Y] = new TileReference {