mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
fix(mail): use attachment item guid for WotLK take item
This commit is contained in:
parent
5a10ae9df0
commit
5fa5020af5
6 changed files with 12 additions and 11 deletions
|
|
@ -17716,7 +17716,7 @@ void GameScreen::renderMailWindow(game::GameHandler& gameHandler) {
|
|||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::SmallButton("Take")) {
|
||||
gameHandler.mailTakeItem(mail.messageId, att.slot);
|
||||
gameHandler.mailTakeItem(mail.messageId, att.itemGuidLow);
|
||||
}
|
||||
|
||||
ImGui::PopID();
|
||||
|
|
@ -17725,7 +17725,7 @@ void GameScreen::renderMailWindow(game::GameHandler& gameHandler) {
|
|||
if (mail.attachments.size() > 1) {
|
||||
if (ImGui::SmallButton("Take All")) {
|
||||
for (const auto& att2 : mail.attachments) {
|
||||
gameHandler.mailTakeItem(mail.messageId, att2.slot);
|
||||
gameHandler.mailTakeItem(mail.messageId, att2.itemGuidLow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue