diff --git a/src/LuaEngine/PlayerMethods.h b/src/LuaEngine/PlayerMethods.h index 3cd0666..2f48f99 100644 --- a/src/LuaEngine/PlayerMethods.h +++ b/src/LuaEngine/PlayerMethods.h @@ -2362,8 +2362,9 @@ namespace LuaPlayer int SendListInventory(lua_State* L, Player* player) { WorldObject* obj = Eluna::CHECKOBJ(L, 2); + uint32 vendorId = Eluna::CHECKVAL(L, 3, 0); - player->GetSession()->SendListInventory(obj->GET_GUID()); + player->GetSession()->SendListInventory(obj->GET_GUID(), vendorId); return 0; }