summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index b39bd4a73..90fc5dfe9 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5126,14 +5126,14 @@ int pc_heal(struct map_session_data *sd,int hp,int sp)
sp = sd->status.max_sp - sd->status.sp;
sd->status.sp+=sp;
+ if(sd->status.sp <= 0)
+ sd->status.sp = 0;
if(sd->status.hp <= 0) {
sd->status.hp = 0;
pc_damage(NULL,sd,1);
hp = 0;
}
- if(sd->status.sp <= 0)
- sd->status.sp = 0;
if(hp)
clif_updatestatus(sd,SP_HP);