Fix d2k map editor crash if spice is placed at the edge of map.

This commit is contained in:
Paul Chote
2021-09-08 10:16:23 +01:00
committed by abcdefg30
parent a1e62158e2
commit b3159d7515

View File

@@ -140,7 +140,8 @@ namespace OpenRA.Mods.D2k.Traits
for (var i = 0; i < directions.Length; i++)
{
var neighbour = cell + directions[i];
UpdateRenderedSpriteInner(neighbour, RenderContents[neighbour]);
if (RenderContents.Contains(neighbour))
UpdateRenderedSpriteInner(neighbour, RenderContents[neighbour]);
}
}