mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9017] Fix typo in GO gossipID check for type 10
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
3fbc1c95f9
commit
cccb85dbe2
2 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue