From 2ae5dd1da0d21a11ad2c68de9a93c4abc9ec6356 Mon Sep 17 00:00:00 2001 From: Simon Hirsig Date: Wed, 1 Nov 2017 15:51:38 +0100 Subject: [PATCH] bugfix --- aux-addon.lua | 2 -- core/shortcut.lua | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/aux-addon.lua b/aux-addon.lua index d1dd84d..a06e1f2 100644 --- a/aux-addon.lua +++ b/aux-addon.lua @@ -211,7 +211,6 @@ end do local last_owner_page_requested function GetOwnerAuctionItems(index) - local page = index last_owner_page_requested = index return orig.GetOwnerAuctionItems(index) end @@ -230,7 +229,6 @@ function Blizzard_AuctionUI() hook 'GetOwnerAuctionItems' 'SetItemRef' 'UseContainerItem' 'AuctionFrameAuctions_OnEvent' end - AuctionFrameAuctions_OnEvent = T.vararg-function(arg) if AuctionFrameAuctions:IsVisible() then return orig.AuctionFrameAuctions_OnEvent(unpack(arg)) diff --git a/core/shortcut.lua b/core/shortcut.lua index 34a60bf..5fbb4dc 100644 --- a/core/shortcut.lua +++ b/core/shortcut.lua @@ -7,10 +7,10 @@ local T = require 'T' local info = require 'aux.util.info' do - local orig = UseContainerItem + local orig = SetItemRef _G.SetItemRef = T.vararg-function(arg) if arg[3] ~= 'RightButton' or not index(get_active_tab(), 'CLICK_LINK') or not strfind(arg[1], '^item:%d+') then - return orig.SetItemRef(unpack(arg)) + return orig(unpack(arg)) end local item_info = info.item(tonumber(select(3, strfind(arg[1], '^item:(%d+)')))) if item_info then @@ -23,7 +23,7 @@ do local orig = UseContainerItem _G.UseContainerItem = T.vararg-function(arg) if modified() or not get_active_tab() then - return orig.UseContainerItem(unpack(arg)) + return orig(unpack(arg)) end local item_info = info.container_item(arg[1], arg[2]) if item_info and get_active_tab().USE_ITEM then