diff --git a/OpenRA.Mods.RA/Traits/SpawnActorOnDeath.cs b/OpenRA.Mods.RA/Traits/SpawnActorOnDeath.cs index 24a1b7e8b2..01661e6bd8 100644 --- a/OpenRA.Mods.RA/Traits/SpawnActorOnDeath.cs +++ b/OpenRA.Mods.RA/Traits/SpawnActorOnDeath.cs @@ -73,7 +73,7 @@ namespace OpenRA.Mods.RA.Traits return; var warhead = e.Warhead as DamageWarhead; - if (info.DeathType != null && warhead != null && !warhead.DamageTypes.Contains(info.DeathType)) + if (info.DeathType != null && (warhead == null || !warhead.DamageTypes.Contains(info.DeathType))) return; self.World.AddFrameEndTask(w =>