aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index e3794de8a8e..e39036f89ef 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -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);