fix crash where harv and linked proc get destroyed by the same bullet
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user