[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:
NoFantasy 2009-12-14 10:45:29 +01:00
parent 1eafc8dfc4
commit 98dd3296e8
2 changed files with 2 additions and 2 deletions

View file

@ -12498,7 +12498,7 @@ void Player::OnGossipSelect(WorldObject* pSource, uint32 gossipListId, uint32 me
uint32 Player::GetGossipTextId(WorldObject *pSource)
{
if (!pSource || pSource->GetTypeId() != TYPEID_UNIT || !((Creature*)pSource)->GetDBTableGUIDLow())
return 0;
return DEFAULT_GOSSIP_MESSAGE;
if (uint32 pos = sObjectMgr.GetNpcGossip(((Creature*)pSource)->GetDBTableGUIDLow()))
return pos;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8989"
#define REVISION_NR "8990"
#endif // __REVISION_NR_H__