diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-02-01 16:55:31 +0100 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-02-01 17:35:16 +0100 |
commit | e9b49f5f827cbacc02ff9a54f158d363942d6fe5 (patch) | |
tree | d19ba68500586fbf1850f3f45a55ef680b4334cf /src | |
parent | 0c0b5719babfa474185bf7aab273dae1fc614c9e (diff) | |
download | tmwa-e9b49f5f827cbacc02ff9a54f158d363942d6fe5.tar.gz tmwa-e9b49f5f827cbacc02ff9a54f158d363942d6fe5.tar.bz2 tmwa-e9b49f5f827cbacc02ff9a54f158d363942d6fe5.tar.xz tmwa-e9b49f5f827cbacc02ff9a54f158d363942d6fe5.zip |
Fix bug whereby stat updates were not sent to client after equipping +1 stat pt item when base stat is 1.
What is funnier is that it sent updates for all other 5 (unchanged
stats). Example, amethyst ring +1 dex:
Sending update for stat 0: saved: 0+1, new: 0+0 (str?)
Sending update for stat 1: saved: 0+1, new: 0+0 (agi?)
Sending update for stat 2: saved: 0+1, new: 0+0 (vit?)
Sending update for stat 3: saved: 0+1, new: 0+0 (int?)
Sending update for stat 5: saved: 0+1, new: 0+0 (luk?)
Diffstat (limited to 'src')
-rw-r--r-- | src/map/pc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index e6b65b7..12af48f 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -1135,7 +1135,7 @@ int pc_calcstatus(dumb_ptr<map_session_data> sd, int first) b_weight = sd->weight; b_max_weight = sd->max_weight; earray<int, ATTR, ATTR::COUNT> b_paramb = sd->paramb; - earray<int, ATTR, ATTR::COUNT> b_parame = sd->paramc; + earray<int, ATTR, ATTR::COUNT> b_parame = sd->parame; earray<SkillValue, SkillID, MAX_SKILL> b_skill = sd->status.skill; b_hit = sd->hit; b_flee = sd->flee; |