summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/pc.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 71742011d..fab7605ae 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2612,7 +2612,7 @@ int clif_statusupack(struct map_session_data *sd,int type,int ok,int val)
WFIFOW(fd,0)=0xbc;
WFIFOW(fd,2)=type;
WFIFOB(fd,4)=ok;
- WFIFOB(fd,5)=val;
+ WFIFOB(fd,5)=cap_value(val,0,UCHAR_MAX);
WFIFOSET(fd,packet_len(0xbc));
return 0;
diff --git a/src/map/pc.c b/src/map/pc.c
index c98016418..8f0bb9b63 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4493,13 +4493,13 @@ int pc_statusup(struct map_session_data *sd,int type)
}
sd->status.status_point-=need;
- if(need!=pc_need_status_point(sd,type)){
+ status_calc_pc(sd,0);
+
+ if( need != pc_need_status_point(sd,type) )
clif_updatestatus(sd,type-SP_STR+SP_USTR);
- }
clif_updatestatus(sd,SP_STATUSPOINT);
- clif_updatestatus(sd,type);
- status_calc_pc(sd,0);
clif_statusupack(sd,type,1,val);
+ clif_updatestatus(sd,type); // send after the 'ack' to override the value
return 0;
}