fix crash on warhead=null
This commit is contained in:
@@ -30,7 +30,7 @@ namespace OpenRA.Mods.RA
|
|||||||
public void Damaged(Actor self, AttackInfo e)
|
public void Damaged(Actor self, AttackInfo e)
|
||||||
{
|
{
|
||||||
if (e.Damage > 0) /* fix to allow healing via `damage` */
|
if (e.Damage > 0) /* fix to allow healing via `damage` */
|
||||||
if (!e.Warhead.PreventProne)
|
if (e.Warhead == null || !e.Warhead.PreventProne)
|
||||||
remainingProneTime = defaultProneTime;
|
remainingProneTime = defaultProneTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user