summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 63b1497..6057278 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -3435,6 +3435,8 @@ int pc_readparam(dumb_ptr<block_list> bl, SP type)
val = sd ? pc_nextjobexp(sd) : 0;
break;
case SP::HP:
+ if (sd && pc_isdead(sd))
+ break; // val = 0
val = battle_get_hp(bl);
break;
case SP::MAXHP: