summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-09-16 10:21:49 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-09-16 10:21:49 -0700
commit1223374a40e4dc4ccc1f7569300745ea653a89ba (patch)
tree9960d645bd0879b76b2f39d77bf2435f5f65b63e /src/map/pc.cpp
parent06b19474a7335cf4a4bd6ecc7405755a9610c742 (diff)
downloadtmwa-1223374a40e4dc4ccc1f7569300745ea653a89ba.tar.gz
tmwa-1223374a40e4dc4ccc1f7569300745ea653a89ba.tar.bz2
tmwa-1223374a40e4dc4ccc1f7569300745ea653a89ba.tar.xz
tmwa-1223374a40e4dc4ccc1f7569300745ea653a89ba.zip
Fix statup2 not actually increasing the stat
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 5fdb390..bc7ef80 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -3228,6 +3228,7 @@ int pc_statusup2(dumb_ptr<map_session_data> sd, SP type, int val)
val = sd->status.attrs[attr] + val;
val = std::min(val, battle_config.max_parameter);
val = std::max(val, 1);
+ sd->status.attrs[attr] = val;
clif_updatestatus(sd, sp_to_usp(type));
clif_updatestatus(sd, type);
pc_calcstatus(sd, 0);