Fix d2k map editor crash if spice is placed at the edge of map.
This commit is contained in:
@@ -140,7 +140,8 @@ namespace OpenRA.Mods.D2k.Traits
|
|||||||
for (var i = 0; i < directions.Length; i++)
|
for (var i = 0; i < directions.Length; i++)
|
||||||
{
|
{
|
||||||
var neighbour = cell + directions[i];
|
var neighbour = cell + directions[i];
|
||||||
UpdateRenderedSpriteInner(neighbour, RenderContents[neighbour]);
|
if (RenderContents.Contains(neighbour))
|
||||||
|
UpdateRenderedSpriteInner(neighbour, RenderContents[neighbour]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user