Mercurial > wow > itemauditor
diff Modules/QuickAuctions.lua @ 78:88a42e00b866 release 2010-08-01
Fixed a problem with how prices were being pulled from Auctioneer.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sun, 01 Aug 2010 22:02:12 -0700 |
parents | a8fc802b42ba |
children | 8d5ad3b71f6f |
line wrap: on
line diff
--- a/Modules/QuickAuctions.lua Sun Aug 01 08:42:29 2010 -0700 +++ b/Modules/QuickAuctions.lua Sun Aug 01 22:02:12 2010 -0700 @@ -164,10 +164,12 @@ end function ItemAuditor:GetAuctionPrice(itemLink) + local link = select(2, GetItemInfo(itemLink)) + assert(link, 'Invalid item link: '..itemLink) if GetAuctionBuyout ~= nil then - return GetAuctionBuyout(itemLink) + return GetAuctionBuyout(link) elseif AucAdvanced and AucAdvanced.Version then - local _, _, _, _, _, lowBuy= AucAdvanced.Modules.Util.SimpleAuction.Private.GetItems(itemLink) + local _, _, _, _, _, lowBuy= AucAdvanced.Modules.Util.SimpleAuction.Private.GetItems(link) return lowBuy end return nil