From bf613cfa79e50f134289d8ebf2cca509b9d88fd5 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Wed, 1 Mar 2017 01:08:52 +0100 Subject: [PATCH] disabled right click in inventory for auctions/bids tabs --- aux-addon.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aux-addon.lua b/aux-addon.lua index f87ae46..9b37cbf 100644 --- a/aux-addon.lua +++ b/aux-addon.lua @@ -93,12 +93,12 @@ end function UseContainerItem(...) temp(arg) - if modified or not index(active_tab, 'USE_ITEM') then + if modified or not active_tab then return orig.UseContainerItem(unpack(arg)) end local item_info = info.container_item(arg[1], arg[2]) - if item_info then - return active_tab.USE_ITEM(item_info) + if item_info and active_tab.USE_ITEM then + active_tab.USE_ITEM(item_info) end end