post listing bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-12-11 10:18:56 +01:00
parent e1b87d71cb
commit 16383d809d
+2 -1
View File
@@ -496,10 +496,11 @@ function record_auction(key, aux_quantity, unit_blizzard_bid, unit_buyout_price,
entry.count = entry.count + 1
end
buyout_records[key] = buyout_records[key] or T
if unit_buyout_price == 0 then return end
do
local entry
for _, record in buyout_records[key] do
if unit_buyout_price > 0 and unit_buyout_price == record.unit_price and aux_quantity == record.stack_size and duration == record.duration and is_player(owner) == record.own then
if unit_buyout_price == record.unit_price and aux_quantity == record.stack_size and duration == record.duration and is_player(owner) == record.own then
entry = record
end
end