refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-23 18:25:04 +02:00
parent c005b9fea4
commit c9cf64dd8d
5 changed files with 41 additions and 86 deletions
+2 -2
View File
@@ -212,15 +212,15 @@ function post_auctions()
unit_buyout_price,
stack_count,
function(posted)
local new_auction_record
for i=1,posted do
new_auction_record = record_auction(key, stack_size, unit_start_price, unit_buyout_price, duration_code, UnitName('player'))
record_auction(key, stack_size, unit_start_price, unit_buyout_price, duration_code, UnitName('player'))
end
update_inventory_records()
selected_item = nil
for _, record in inventory_records do
if record.key == key then
set_item(record)
break
end
end
refresh = true