mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-16 01:03: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
|
||||
// (no cast), the server sends SMSG_LOOT_RESPONSE directly after USE.
|
||||
} else if (isMailbox) {
|
||||
LOG_INFO("Mailbox interaction: opening mail UI and requesting mail list");
|
||||
mailboxGuid_ = guid;
|
||||
mailboxOpen_ = true;
|
||||
hasNewMail_ = false;
|
||||
selectedMailIndex_ = -1;
|
||||
showMailCompose_ = false;
|
||||
refreshMailList();
|
||||
// Server responds with SMSG_SHOW_MAILBOX → InventoryHandler::handleShowMailbox
|
||||
// opens the UI and requests the mail list.
|
||||
}
|
||||
|
||||
// CMSG_GAMEOBJ_REPORT_USE triggers GO AI scripts (SmartAI, ScriptAI) which
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue