fix: prefetch item info for trade slot items in SMSG_TRADE_STATUS_EXTENDED

After parsing the peer's trade window state, query item info for all
occupied slots so item names display immediately rather than showing
'Item 12345' until the cache is populated on the next frame.
This commit is contained in:
Kelsi 2026-03-11 00:46:11 -07:00
parent 06facc0060
commit 170ff1597c

View file

@ -19201,6 +19201,11 @@ void GameHandler::handleTradeStatusExtended(network::Packet& packet) {
else peerTradeGold_ = coins;
}
// Prefetch item info for all occupied trade slots so names show immediately
for (const auto& s : slots) {
if (s.occupied && s.itemId != 0) queryItemInfo(s.itemId, 0);
}
LOG_DEBUG("SMSG_TRADE_STATUS_EXTENDED: isSelf=", (int)isSelf,
" myGold=", myTradeGold_, " peerGold=", peerTradeGold_);
}