mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[8990] Correctly return DEFAULT_GOSSIP_MESSAGE and never 0 as gossipTextId
Fixes problem with summoned and gossip and where no textId is defined in database Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
1eafc8dfc4
commit
98dd3296e8
2 changed files with 2 additions and 2 deletions
|
|
@ -12498,7 +12498,7 @@ void Player::OnGossipSelect(WorldObject* pSource, uint32 gossipListId, uint32 me
|
||||||
uint32 Player::GetGossipTextId(WorldObject *pSource)
|
uint32 Player::GetGossipTextId(WorldObject *pSource)
|
||||||
{
|
{
|
||||||
if (!pSource || pSource->GetTypeId() != TYPEID_UNIT || !((Creature*)pSource)->GetDBTableGUIDLow())
|
if (!pSource || pSource->GetTypeId() != TYPEID_UNIT || !((Creature*)pSource)->GetDBTableGUIDLow())
|
||||||
return 0;
|
return DEFAULT_GOSSIP_MESSAGE;
|
||||||
|
|
||||||
if (uint32 pos = sObjectMgr.GetNpcGossip(((Creature*)pSource)->GetDBTableGUIDLow()))
|
if (uint32 pos = sObjectMgr.GetNpcGossip(((Creature*)pSource)->GetDBTableGUIDLow()))
|
||||||
return pos;
|
return pos;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8989"
|
#define REVISION_NR "8990"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue