[9017] Fix typo in GO gossipID check for type 10

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2009-12-17 22:35:22 +01:00
parent 3fbc1c95f9
commit cccb85dbe2
2 changed files with 3 additions and 4 deletions

View file

@ -951,14 +951,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);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9016" #define REVISION_NR "9017"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__