From e9b49f5f827cbacc02ff9a54f158d363942d6fe5 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Thu, 1 Feb 2024 16:55:31 +0100 Subject: 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?) --- src/map/pc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 sd, int first) b_weight = sd->weight; b_max_weight = sd->max_weight; earray b_paramb = sd->paramb; - earray b_parame = sd->paramc; + earray b_parame = sd->parame; earray b_skill = sd->status.skill; b_hit = sd->hit; b_flee = sd->flee; -- cgit v1.2.3-60-g2f50