summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 f07e34b2a..6b270023b 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1325,7 +1325,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
break;
case SP_MAXHP:
if(sd->state.lr_flag != 2) {
- if (val < 0 && status->max_hp <= -val)
+ if (val < 0 && status->max_hp <= (unsigned int)(-val))
status->max_hp = 1;
else
status->max_hp+=val;
@@ -1333,7 +1333,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
break;
case SP_MAXSP:
if(sd->state.lr_flag != 2) {
- if (val < 0 && status->max_sp <= -val)
+ if (val < 0 && status->max_sp <= (unsigned int)(-val))
status->max_sp = 1;
else
status->max_sp+=val;