fix: pre-fetch quest reward item info when quest details packet arrives

When SMSG_QUESTGIVER_QUEST_DETAILS is received (quest accept dialog),
immediately query item info for all rewardChoiceItems and rewardItems.
This ensures item names and icons are cached before the offer-reward
dialog opens on turn-in, eliminating the "Item {id}" placeholder that
appeared when the dialog opened before item queries completed.
This commit is contained in:
Kelsi 2026-03-10 20:39:49 -07:00
parent b87b6cee0f
commit 984decd664

View file

@ -14627,6 +14627,10 @@ void GameHandler::handleQuestDetails(network::Packet& packet) {
}
break;
}
// Pre-fetch item info for all reward items so icons and names are ready
// by the time the offer-reward dialog opens (after the player turns in).
for (const auto& item : data.rewardChoiceItems) queryItemInfo(item.itemId, 0);
for (const auto& item : data.rewardItems) queryItemInfo(item.itemId, 0);
questDetailsOpen = true;
gossipWindowOpen = false;
}