From f3dca9c47783fc4a86ad70520e5a8b28c921880e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 9 Mar 2023 12:00:38 +0800 Subject: [PATCH] 1 --- server/gameserver/mt/Equip.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gameserver/mt/Equip.cc b/server/gameserver/mt/Equip.cc index 519ef985..3c9401a6 100644 --- a/server/gameserver/mt/Equip.cc +++ b/server/gameserver/mt/Equip.cc @@ -45,7 +45,7 @@ namespace mt _atk = a8::XValue(strings[0]); _atk_up = a8::XValue(strings[1]); } else { - _atk = a8::XValue(strings[0]); + _atk = a8::XValue(atk()); _atk_up = _atk; } } @@ -56,7 +56,7 @@ namespace mt _max_hp = a8::XValue(strings[0]); _max_hp_up = a8::XValue(strings[1]); } else { - _max_hp = a8::XValue(strings[0]); + _max_hp = a8::XValue(max_hp()); _max_hp_up = _max_hp; } }