aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/NPCHandler.cpp
diff options
context:
space:
mode:
authorModoX <moardox@gmail.com>2023-04-05 23:49:46 +0200
committerGitHub <noreply@github.com>2023-04-05 23:49:46 +0200
commit36044a9470e9c39a71916e908ab6cf4f95677793 (patch)
treef3c6997cf2f58c6d2f20e2c074d7ed0a4e2915db /src/server/game/Handlers/NPCHandler.cpp
parentc1c04fe73bfbc232170b4d14b2f84637f3705dc5 (diff)
Core/Creature: Added possibility to give creatures multiple gossip menu ids and control them via conditions (#28159)
Diffstat (limited to 'src/server/game/Handlers/NPCHandler.cpp')
-rw-r--r--src/server/game/Handlers/NPCHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Handlers/NPCHandler.cpp b/src/server/game/Handlers/NPCHandler.cpp
index a2274a3b6e0..23249272a41 100644
--- a/src/server/game/Handlers/NPCHandler.cpp
+++ b/src/server/game/Handlers/NPCHandler.cpp
@@ -183,7 +183,7 @@ void WorldSession::HandleGossipHelloOpcode(WorldPackets::NPC::Hello& packet)
if (!unit->AI()->OnGossipHello(_player))
{
// _player->TalkedToCreature(unit->GetEntry(), unit->GetGUID());
- _player->PrepareGossipMenu(unit, unit->GetGossipMenuId(), true);
+ _player->PrepareGossipMenu(unit, _player->GetGossipMenuForSource(unit), true);
_player->SendPreparedGossip(unit);
}
}