From ab431fe9ee71afc8ad5f773f0c3b032dc42cbb1d Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 6 Oct 2010 20:17:03 +1300 Subject: [PATCH] fix crash on warhead=null --- OpenRA.Mods.RA/TakeCover.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/TakeCover.cs b/OpenRA.Mods.RA/TakeCover.cs index a570c2455f..3079cfbd26 100644 --- a/OpenRA.Mods.RA/TakeCover.cs +++ b/OpenRA.Mods.RA/TakeCover.cs @@ -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; }