fix crash on warhead=null

This commit is contained in:
Chris Forbes
2010-10-06 20:17:03 +13:00
parent 7ec9958d47
commit ab431fe9ee

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Mods.RA
public void Damaged(Actor self, AttackInfo e)
{
if (e.Damage > 0) /* fix to allow healing via `damage` */
if (!e.Warhead.PreventProne)
if (e.Warhead == null || !e.Warhead.PreventProne)
remainingProneTime = defaultProneTime;
}