diff options
Diffstat (limited to 'src/entities/creature.rs')
-rw-r--r-- | src/entities/creature.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/creature.rs b/src/entities/creature.rs index 4cf6f60bdc6c..87ffda161e1c 100644 --- a/src/entities/creature.rs +++ b/src/entities/creature.rs @@ -44,7 +44,7 @@ impl Creature { /// Returns true if this creature has died pub fn dead(&self) -> bool { - self.hitpoints <= 0 + self.hitpoints == 0 } } |