Fix a crash when flood filling tiles outside of the map.
This commit is contained in:
committed by
abcdefg30
parent
64908c8e70
commit
74c35edbd9
@@ -113,6 +113,9 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
void FloodFillWithBrush(CPos cell)
|
||||
{
|
||||
var map = world.Map;
|
||||
if (!map.Contains(cell))
|
||||
return;
|
||||
|
||||
var mapTiles = map.Tiles;
|
||||
var replace = mapTiles[cell];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user