fixed a bug where armor would be parsed as charges for items without charges

This commit is contained in:
Manuel Simon Hirsig
2015-09-10 03:38:53 +02:00
parent 44db416765
commit 030e9c986c
+1 -1
View File
@@ -126,7 +126,7 @@ function processQueryResults()
AuctionatorScanTooltip:SetAuctionItem("list", i)
AuctionatorScanTooltip:Show()
local chargesLabel = getglobal("AuctionatorScanTooltipTextLeft"..4):GetText()
local chargesString = gsub(chargesLabel and chargesLabel or "","%D", "")
local chargesString = gsub(chargesLabel and chargesLabel or "", "(%d+) Charges", "%1")
local charges = tonumber(chargesString)
local scanDatum = {