aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 91816d33c25..40ed45d027b 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -10798,7 +10798,7 @@ void Unit::SetLevel(uint32 lvl)
void Unit::SetHealth(uint32 val)
{
- if(!isAlive())
+ if(getDeathState() == JUST_DIED)
val = 0;
else
{