mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-15 17:03:50 +00:00
fix: gossip/vendor windows not closing when opening mailbox/trainer/taxi
Domain handlers were setting `owner_.gossipWindowOpen = false` directly on GameHandler's stale member, but isGossipWindowOpen() delegates to QuestHandler's copy. The gossip window stayed open because the delegating getter never saw the close. Fix: use owner_.closeGossip() / owner_.closeVendor() which properly delegate to QuestHandler/InventoryHandler to close the canonical state. Affected: InventoryHandler (3 sites: mail, trainer, bank opening), MovementHandler (1 site: taxi opening), QuestHandler (2 sites: gossip opening closes vendor).
This commit is contained in:
parent
e5959dceb5
commit
504d112625
3 changed files with 6 additions and 6 deletions
|
|
@ -2114,7 +2114,7 @@ void MovementHandler::handleShowTaxiNodes(network::Packet& packet) {
|
|||
currentTaxiData_ = data;
|
||||
taxiNpcGuid_ = data.npcGuid;
|
||||
taxiWindowOpen_ = true;
|
||||
owner_.gossipWindowOpen = false;
|
||||
owner_.closeGossip();
|
||||
buildTaxiCostMap();
|
||||
auto it = taxiNodes_.find(data.nearestNode);
|
||||
if (it != taxiNodes_.end()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue