actors without Health are not dead.

This commit is contained in:
Chris Forbes
2011-03-02 20:56:46 +13:00
parent 11384f692b
commit ad72c80bab

View File

@@ -141,7 +141,7 @@ namespace OpenRA.Traits
if (self.Destroyed) return true; if (self.Destroyed) return true;
var health = self.TraitOrDefault<Health>(); var health = self.TraitOrDefault<Health>();
return (health == null) ? true : health.IsDead; return (health == null) ? false : health.IsDead;
} }
public static DamageState GetDamageState(this Actor self) public static DamageState GetDamageState(this Actor self)