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