Skip to content

Commit

Permalink
[9017] Fix typo in GO gossipID check for type 10
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Dec 17, 2009
1 parent 1d7069e commit d54d1c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/game/GameObject.cpp
Expand Up @@ -951,14 +951,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);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9016"
#define REVISION_NR "9017"
#endif // __REVISION_NR_H__

0 comments on commit d54d1c4

Please sign in to comment.