fix crash where harv and linked proc get destroyed by the same bullet

This commit is contained in:
Bob
2010-09-20 19:07:56 +12:00
parent c5b7c43d23
commit 65515d54af

View File

@@ -179,7 +179,7 @@ namespace OpenRA.Mods.RA
public void Damaged(Actor self, AttackInfo e)
{
if (e.DamageState == DamageState.Dead)
if (LinkedProc != null)
if (LinkedProc != null && !LinkedProc.Destroyed)
LinkedProc.TraitsImplementing<IAcceptOre>().FirstOrDefault().UnlinkHarvester(LinkedProc,self);
}