From 473f8dfbb8701682978bd93da3c72d32f590f193 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 3 Dec 2013 18:16:40 +1300 Subject: [PATCH] Fix an off-by-one error in SmudgeLayer. Fixes #4139. --- OpenRA.Mods.RA/World/SmudgeLayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/World/SmudgeLayer.cs b/OpenRA.Mods.RA/World/SmudgeLayer.cs index 2569cfa377..47ac2709fc 100644 --- a/OpenRA.Mods.RA/World/SmudgeLayer.cs +++ b/OpenRA.Mods.RA/World/SmudgeLayer.cs @@ -50,7 +50,7 @@ namespace OpenRA.Mods.RA // Add map smudges foreach (var s in w.Map.Smudges.Value.Where(s => Info.Types.Contains(s.Type))) - tiles.Add((CPos)s.Location, new TileReference((byte)Array.IndexOf(Info.Types, s.Type), (byte)s.Depth)); + tiles.Add((CPos)s.Location, new TileReference((byte)(Array.IndexOf(Info.Types, s.Type) + 1), (byte)s.Depth)); } public void AddSmudge(CPos loc)