From 5f36933837fc9a7480c397006fff8aac8919dd25 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 22 Jul 2010 10:43:10 +1200 Subject: [PATCH] Fix custom terrain location --- OpenRA.Game/Graphics/Minimap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Graphics/Minimap.cs b/OpenRA.Game/Graphics/Minimap.cs index 4455225d0e..fb8b22e9b0 100644 --- a/OpenRA.Game/Graphics/Minimap.cs +++ b/OpenRA.Game/Graphics/Minimap.cs @@ -102,7 +102,7 @@ namespace OpenRA.Graphics var tt = t.GetTerrainType(xy); if (tt != null) { - *(c + (xy.Y * bitmapData.Stride >> 2) + xy.X) = world.TileSet.Terrain[tt].Color.ToArgb(); + *(c + (y * bitmapData.Stride >> 2) + x) = world.TileSet.Terrain[tt].Color.ToArgb(); break; } }