mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix item not working with gossip
Thanks @ak47sigh
This commit is contained in:
@@ -2956,7 +2956,7 @@ namespace LuaPlayer
|
|||||||
int GossipSendMenu(Eluna* /*E*/, lua_State* L, Player* player)
|
int GossipSendMenu(Eluna* /*E*/, lua_State* L, Player* player)
|
||||||
{
|
{
|
||||||
uint32 _npcText = Eluna::CHECKVAL<uint32>(L, 2);
|
uint32 _npcText = Eluna::CHECKVAL<uint32>(L, 2);
|
||||||
WorldObject* sender = Eluna::CHECKOBJ<WorldObject>(L, 3);
|
Object* sender = Eluna::CHECKOBJ<Object>(L, 3);
|
||||||
if (sender->GetTypeId() == TYPEID_PLAYER)
|
if (sender->GetTypeId() == TYPEID_PLAYER)
|
||||||
{
|
{
|
||||||
uint32 menu_id = Eluna::CHECKVAL<uint32>(L, 4);
|
uint32 menu_id = Eluna::CHECKVAL<uint32>(L, 4);
|
||||||
|
|||||||
Reference in New Issue
Block a user