mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
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:
parent
b87b6cee0f
commit
984decd664
1 changed files with 4 additions and 0 deletions
|
|
@ -14627,6 +14627,10 @@ void GameHandler::handleQuestDetails(network::Packet& packet) {
|
||||||
}
|
}
|
||||||
break;
|
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;
|
questDetailsOpen = true;
|
||||||
gossipWindowOpen = false;
|
gossipWindowOpen = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue