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;
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user