Minor quantity fix from previous commit

master
BeniS 11 years ago
parent f4c7d98bd5
commit 3b91c4d509

@ -488,16 +488,19 @@ function checkSellAllTooltip()
local first = true local first = true
for key, amount in pairs(playerItems) do for key, amount in pairs(playerItems) do
if amount > 0 then local data = getTradeItemData(key, SELL)
local data = getTradeItemData(key, SELL) if data then
if data and canTradeItem(data) then amount = getSellQuantity(data.ptr)
info = info..(not first and "\n" or "").. if amount > 0 then
amount.." ".. if data and amount > 0 then
data.name.." (".. info = info..(not first and "\n" or "")..
data.price*amount.." gold)" amount.." "..
data.name.." ("..
total = total+(data.price*amount) data.price*amount.." gold)"
if first then first = false end
total = total+(data.price*amount)
if first then first = false end
end
end end
end end
end end

Loading…
Cancel
Save