diff --git a/libs/libtooltip.lua b/libs/libtooltip.lua index f204484e..10a08b1f 100644 --- a/libs/libtooltip.lua +++ b/libs/libtooltip.lua @@ -141,17 +141,15 @@ end local pfHookSetAuctionItem = GameTooltip.SetAuctionItem function GameTooltip.SetAuctionItem(self, atype, index) - local itemName, _, itemCount = GetAuctionItemInfo(atype, index) - libtooltip.itemCount = itemCount - libtooltip.itemLink = GetItemLinkByName(itemName) + _, libtooltip.itemCount = GetAuctionItemInfo(atype, index) + libtooltip.itemLink = GetAuctionItemLink(atype, index) return pfHookSetAuctionItem(self, atype, index) end local pfHookSetAuctionSellItem = GameTooltip.SetAuctionSellItem function GameTooltip.SetAuctionSellItem(self) - local itemName, _, itemCount = GetAuctionSellItemInfo() - libtooltip.itemCount = itemCount - libtooltip.itemLink = GetItemLinkByName(itemName) + _, libtooltip.itemCount = GetAuctionSellItemInfo() + libtooltip.itemLink = GetAuctionSellItemLink() return pfHookSetAuctionSellItem(self) end diff --git a/modules/sellvalue.lua b/modules/sellvalue.lua index 98445ffa..f854d089 100644 --- a/modules/sellvalue.lua +++ b/modules/sellvalue.lua @@ -32,7 +32,7 @@ pfUI:RegisterModule("sellvalue", "vanilla:tbc", function () pfUI.sellvalue:SetScript("OnShow", function() if libtooltip:GetItemLink() then local id = libtooltip:GetItemID() - local count = libtooltip:GetItemCount() or 1 + local count = tonumber(libtooltip:GetItemCount()) or 1 AddVendorPrices(GameTooltip, id, math.max(count, 1)) end end)