Fix viceroids being spawned by crushed infantry

This commit is contained in:
Oliver Brakmann
2015-11-02 21:28:31 +01:00
parent 214945a61f
commit 17370c9e2e

View File

@@ -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 =>