bugfix for auctions without buyout price

This commit is contained in:
Manuel Simon Hirsig
2015-10-04 05:50:38 +02:00
parent 47483edd65
commit 1bdac168e4
2 changed files with 20 additions and 14 deletions
+2 -2
View File
@@ -478,7 +478,7 @@ end
-----------------------------------------
function Aux.auction_key(tooltip, stack_size, bid, buyout_price)
function Aux.auction_key(tooltip, stack_size, amount)
local key = ''
for i, line in ipairs(tooltip) do
local left_text = line[1].text
@@ -490,5 +490,5 @@ function Aux.auction_key(tooltip, stack_size, bid, buyout_price)
key = key .. right_text .. '_'
end
end
return key .. stack_size .. '_' .. bid .. '_' .. buyout_price
return key .. (stack_size or '0') .. '_' .. (amount or '0')
end