destroying buildings no longer crashes the game
This commit is contained in:
@@ -57,6 +57,7 @@ namespace OpenRa.Game
|
|||||||
|
|
||||||
public void Remove( Actor self, IOccupySpace unit )
|
public void Remove( Actor self, IOccupySpace unit )
|
||||||
{
|
{
|
||||||
|
if (unit != null)
|
||||||
foreach (var c in unit.OccupiedCells())
|
foreach (var c in unit.OccupiedCells())
|
||||||
influence[c.X, c.Y] = null;
|
influence[c.X, c.Y] = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user