fix: clear gossip/quest POI markers on map change (SMSG_NEW_WORLD)

Quest POI markers are map-specific. Clearing gossipPois_ on world entry
prevents stale markers from previous maps being displayed on the new map.
Quest POIs will be re-fetched as the quest log re-queries on the new map.
This commit is contained in:
Kelsi 2026-03-11 00:24:35 -07:00
parent 2ee0934653
commit 72a16a2427

View file

@ -16702,6 +16702,10 @@ void GameHandler::handleNewWorld(network::Packet& packet) {
entityManager.clear();
hostileAttackers_.clear();
worldStates_.clear();
// Quest POI markers are map-specific; remove those that don't apply to the new map.
// Markers without a questId tag (data==0) are gossip-window POIs — keep them cleared
// here since gossipWindowOpen is reset on teleport anyway.
gossipPois_.clear();
worldStateMapId_ = mapId;
worldStateZoneId_ = 0;
activeAreaTriggers_.clear();