mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[9267] Correct mixed up typeid check for gossip scripts
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
1d2943a2fd
commit
13dee34689
2 changed files with 3 additions and 3 deletions
|
|
@ -12479,9 +12479,9 @@ void Player::OnGossipSelect(WorldObject* pSource, uint32 gossipListId, uint32 me
|
||||||
|
|
||||||
if (pMenuData.m_gAction_script)
|
if (pMenuData.m_gAction_script)
|
||||||
{
|
{
|
||||||
if (pSource->GetTypeId() == TYPEID_UNIT)
|
if (pSource->GetTypeId() == TYPEID_GAMEOBJECT)
|
||||||
GetMap()->ScriptsStart(sGossipScripts, pMenuData.m_gAction_script, this, pSource);
|
GetMap()->ScriptsStart(sGossipScripts, pMenuData.m_gAction_script, this, pSource);
|
||||||
else if (pSource->GetTypeId() == TYPEID_GAMEOBJECT)
|
else if (pSource->GetTypeId() == TYPEID_UNIT)
|
||||||
GetMap()->ScriptsStart(sGossipScripts, pMenuData.m_gAction_script, pSource, this);
|
GetMap()->ScriptsStart(sGossipScripts, pMenuData.m_gAction_script, pSource, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9266"
|
#define REVISION_NR "9267"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue