Fix item not working with gossip

Thanks @ak47sigh
This commit is contained in:
Rochet2
2014-12-22 22:58:17 +02:00
parent aa151da561
commit 66a624d5db

View File

@@ -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);