diff options
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 322a2aea95d..54f51fd2dd7 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -853,16 +853,19 @@ void Creature::OnGossipSelect(Player* player, uint32 option) if(!gossip) return; } - uint32 textid=GetGossipTextId( action, zoneid); - if(textid==0) - textid=GetNpcTextId(); switch (gossip->Action) { case GOSSIP_OPTION_GOSSIP: + { + uint32 textid = GetGossipTextId(action, zoneid); + if (textid == 0) + textid=GetNpcTextId(); + player->PlayerTalkClass->CloseGossip(); player->PlayerTalkClass->SendTalking(textid); break; + } case GOSSIP_OPTION_OUTDOORPVP: sOutdoorPvPMgr.HandleGossipOption(player, GetGUID(), option); break; |