summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/units.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp
index 92e865b..e310026 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -185,7 +185,7 @@ void unit_t::damage(int points, unit_t *attacker)
blood->place(&game->world);
health -= points;
- if (health < 0)
+ if (health <= 0)
die(attacker);
}