mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-02 15:53:51 +00:00
fix(mail): let SMSG_SHOW_MAILBOX open mailbox instead of stale GameHandler fields
GO interaction was setting the old GameHandler mailbox state instead of InventoryHandler's, so refreshMailList saw mailboxGuid_=0 and bailed.
This commit is contained in:
parent
53244d025c
commit
62f3f515e2
1 changed files with 2 additions and 7 deletions
|
|
@ -5762,13 +5762,8 @@ void GameHandler::performGameObjectInteractionNow(uint64_t guid) {
|
||||||
// (using lastInteractedGoGuid_ set above). For instant-open chests
|
// (using lastInteractedGoGuid_ set above). For instant-open chests
|
||||||
// (no cast), the server sends SMSG_LOOT_RESPONSE directly after USE.
|
// (no cast), the server sends SMSG_LOOT_RESPONSE directly after USE.
|
||||||
} else if (isMailbox) {
|
} else if (isMailbox) {
|
||||||
LOG_INFO("Mailbox interaction: opening mail UI and requesting mail list");
|
// Server responds with SMSG_SHOW_MAILBOX → InventoryHandler::handleShowMailbox
|
||||||
mailboxGuid_ = guid;
|
// opens the UI and requests the mail list.
|
||||||
mailboxOpen_ = true;
|
|
||||||
hasNewMail_ = false;
|
|
||||||
selectedMailIndex_ = -1;
|
|
||||||
showMailCompose_ = false;
|
|
||||||
refreshMailList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CMSG_GAMEOBJ_REPORT_USE triggers GO AI scripts (SmartAI, ScriptAI) which
|
// CMSG_GAMEOBJ_REPORT_USE triggers GO AI scripts (SmartAI, ScriptAI) which
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue