Skip to content

Commit

Permalink
Fix issue with maximums
Browse files Browse the repository at this point in the history
  • Loading branch information
solocommand committed Oct 19, 2020
1 parent 1aa471b commit c2538dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scoreboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ do
local c = C_CurrencyInfo.GetCurrencyListInfo(i)
if (not c.isHeader) then
if (addon:getCurrency(c.iconFileID) and not c.isTypeUnused) then
text = text..renderItem(c.name, c.quantity, c.iconFileID, c.maximum)
text = text..renderItem(c.name, c.quantity, c.iconFileID, c.maxQuantity)
if (i ~= size) then text = text.." " end
end
end
Expand Down Expand Up @@ -162,8 +162,8 @@ do
-- @todo stylize the count when nearing limit?
local ltext = fmtIcon(c.iconFileID)..c.name
local rtext = highlight(c.quantity)
if addon.db.showLimits and c.maximum and c.maximum > 0 then
rtext = rtext.." / "..highlight(c.maximum)
if addon.db.showLimits and c.maxQuantity and c.maxQuantity > 0 then
rtext = rtext.." / "..highlight(c.maxQuantity)
end
GameTooltip:AddDoubleLine(ltext, rtext)
end
Expand Down

0 comments on commit c2538dc

Please sign in to comment.