From 3a6a01a4696788e79b21f3f1019d8b5efba8e688 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Mon, 2 Nov 2015 18:24:42 +0100 Subject: [PATCH] fixed bug where it would bid instead of buy sometimes --- core.lua | 4 ++-- item_search_frame.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index 2bf887e..b1da41d 100644 --- a/core.lua +++ b/core.lua @@ -258,8 +258,8 @@ function Aux_QualityColor(code) end end -function Aux.auction_signature(hyperlink, stack_size, amount) - return hyperlink .. (stack_size or '0') .. '_' .. (amount or '0') +function Aux.auction_signature(hyperlink, stack_size, bid, amount) + return hyperlink .. (stack_size or '0') .. '_' .. (bid or '0') .. '_' .. (amount or '0') end function Aux.item_class_index(item_class) diff --git a/item_search_frame.lua b/item_search_frame.lua index c7098d9..e4348fa 100644 --- a/item_search_frame.lua +++ b/item_search_frame.lua @@ -746,7 +746,7 @@ function create_auction_record(auction_info, current_page) hyperlink = auction_info.hyperlink, page = current_page, bid = bid, - bid_per_unit = Aux_Round(bid/aux_quantity), + bid_per_unit = Aux_Round(bid / aux_quantity), owner = auction_info.owner, duration = auction_info.duration, usable = auction_info.usable,