diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index c8189cf14..28cb26d94 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -813,10 +813,8 @@ void Creature::sendPreparedGossip(Player* player) if(!player) return; - GossipMenu& gossipmenu = player->PlayerTalkClass->GetGossipMenu(); - // in case empty gossip menu open quest menu if any - if (gossipmenu.Empty() && GetNpcTextId() == 0) + if (player->PlayerTalkClass->GetGossipMenu().Empty() && !player->PlayerTalkClass->GetQuestMenu().Empty()) { player->SendPreparedQuest(GetGUID()); return; diff --git a/src/game/GossipDef.cpp b/src/game/GossipDef.cpp index 7b375f228..8a8dcb736 100644 --- a/src/game/GossipDef.cpp +++ b/src/game/GossipDef.cpp @@ -125,7 +125,7 @@ bool PlayerMenu::GossipOptionCoded( unsigned int Selection ) void PlayerMenu::SendGossipMenu( uint32 TitleTextId, uint64 npcGUID ) { WorldPacket data( SMSG_GOSSIP_MESSAGE, (100) ); // guess size - data << npcGUID; + data << uint64(npcGUID); data << uint32(0); // new 2.4.0 data << uint32( TitleTextId ); data << uint32( mGossipMenu.MenuItemCount() ); // max count 0x0F