diff --git a/core/scan.lua b/core/scan.lua index 1a1ab1f..b3e86c7 100644 --- a/core/scan.lua +++ b/core/scan.lua @@ -132,13 +132,13 @@ function scan_page(i) do (get_state().params.on_page_scanned or pass)() end if get_query().blizzard_query and get_state().page < last_page(get_state().total_auctions) then get_state().page = get_state().page + 1 + Pages = last_page(get_state().total_auctions) return submit_query() else return scan() end end - local pages = last_page(get_state().total_auctions) local auction_info = info.auction(i, get_state().params.type) if auction_info and (auction_info.owner or get_state().params.ignore_owner or aux.account_data.ignore_owner) then auction_info.index = i @@ -146,7 +146,7 @@ function scan_page(i) auction_info.blizzard_query = get_query().blizzard_query auction_info.query_type = get_state().params.type - history.process_auction(auction_info, pages) + history.process_auction(auction_info, Pages) if (get_state().params.auto_buy_validator or pass)(auction_info) and auction_info.buyout_price >0 and auction_info.owner ~= UnitName("player") then local send_signal, signal_received = aux.signal()