From e9b49f5f827cbacc02ff9a54f158d363942d6fe5 Mon Sep 17 00:00:00 2001
From: Fedja Beader <fedja@protonmail.ch>
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<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;
-- 
cgit v1.2.3-70-g09d2