From 984decd664cbb820324ff025cdfd667e70112226 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 10 Mar 2026 20:39:49 -0700 Subject: [PATCH] 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. --- src/game/game_handler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 16a476d9..d18ec99c 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -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; }