fix: propagate sellPrice to all rebuildOnlineInventory() inventory paths

Equipment, backpack, and bag-content paths were missing def.sellPrice
assignment — only bank/bank-bag paths had it. This caused the "Sell"
price in item tooltips to show 0g 0s 0c for equipped and backpack items.
This commit is contained in:
Kelsi 2026-03-10 16:30:01 -07:00
parent 30058a8df5
commit dce8a4e442

View file

@ -10758,6 +10758,7 @@ void GameHandler::rebuildOnlineInventory() {
def.agility = infoIt->second.agility;
def.intellect = infoIt->second.intellect;
def.spirit = infoIt->second.spirit;
def.sellPrice = infoIt->second.sellPrice;
def.itemLevel = infoIt->second.itemLevel;
def.requiredLevel = infoIt->second.requiredLevel;
} else {
@ -10800,6 +10801,7 @@ void GameHandler::rebuildOnlineInventory() {
def.agility = infoIt->second.agility;
def.intellect = infoIt->second.intellect;
def.spirit = infoIt->second.spirit;
def.sellPrice = infoIt->second.sellPrice;
def.itemLevel = infoIt->second.itemLevel;
def.requiredLevel = infoIt->second.requiredLevel;
} else {
@ -10877,6 +10879,7 @@ void GameHandler::rebuildOnlineInventory() {
def.agility = infoIt->second.agility;
def.intellect = infoIt->second.intellect;
def.spirit = infoIt->second.spirit;
def.sellPrice = infoIt->second.sellPrice;
def.itemLevel = infoIt->second.itemLevel;
def.requiredLevel = infoIt->second.requiredLevel;
def.bagSlots = infoIt->second.containerSlots;