fix crash involving crushing and dead walls

This commit is contained in:
Bob
2010-11-06 16:35:51 +13:00
parent 13d76f8e9c
commit 3dd27fcb77
2 changed files with 2 additions and 3 deletions

View File

@@ -72,8 +72,8 @@ namespace OpenRA.Traits
return;
else if( influenceNode.actor == toRemove )
influenceNode = influenceNode.next;
else
RemoveInner( ref influenceNode.next, toRemove );
RemoveInner( ref influenceNode.next, toRemove );
}
public void Update(Actor self, IOccupySpace unit)

View File

@@ -29,7 +29,6 @@ namespace OpenRA.Mods.RA.Buildings
{
this.self = self;
this.info = info;
self.World.WorldActor.Trait<UnitInfluence>().Add(self, self.Trait<Building>());
}
public IEnumerable<string> CrushClasses { get { return info.CrushClasses; } }