Fix typo in GO gossipID check for type 10. by NoFantasy

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-25 16:05:18 +01:00
parent 3fedfe296d
commit 2a97429a93
+2 -3
View File
@@ -1083,14 +1083,13 @@ void GameObject::Use(Unit* user)
{ {
Player* player = (Player*)user; Player* player = (Player*)user;
// show page if (info->goober.pageId) // show page...
if(info->goober.pageId)
{ {
WorldPacket data(SMSG_GAMEOBJECT_PAGETEXT, 8); WorldPacket data(SMSG_GAMEOBJECT_PAGETEXT, 8);
data << GetGUID(); data << GetGUID();
player->GetSession()->SendPacket(&data); 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->PrepareGossipMenu(this, info->goober.gossipID);
player->SendPreparedGossip(this); player->SendPreparedGossip(this);