mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 04:42:10 +01:00
Fix typo in GO gossipID check for type 10. by NoFantasy
--HG-- branch : trunk
This commit is contained in:
@@ -1083,14 +1083,13 @@ void GameObject::Use(Unit* user)
|
||||
{
|
||||
Player* player = (Player*)user;
|
||||
|
||||
// show page
|
||||
if(info->goober.pageId)
|
||||
if (info->goober.pageId) // show page...
|
||||
{
|
||||
WorldPacket data(SMSG_GAMEOBJECT_PAGETEXT, 8);
|
||||
data << GetGUID();
|
||||
player->GetSession()->SendPacket(&data);
|
||||
}
|
||||
else if (info->questgiver.gossipID)
|
||||
else if (info->goober.gossipID) // ...or gossip, if page does not exist
|
||||
{
|
||||
player->PrepareGossipMenu(this, info->goober.gossipID);
|
||||
player->SendPreparedGossip(this);
|
||||
|
||||
Reference in New Issue
Block a user