aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-25 16:05:18 +0100
committern0n4m3 <none@none>2009-12-25 16:05:18 +0100
commit2a97429a93c43430c28fad70618cda1b0fd9d37d (patch)
tree52c9ba07fe551d99a84bbc2a8e9a6ceb2409e32c /src/game/GameObject.cpp
parent3fedfe296d3e46b491b727db82b6a166806e8d5b (diff)
Fix typo in GO gossipID check for type 10. by NoFantasy
--HG-- branch : trunk
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);