bag type fix, status bar change

This commit is contained in:
Manuel Simon Hirsig
2016-03-24 16:29:54 +01:00
parent d8c1e2fab7
commit f0997eaaf4
4 changed files with 23 additions and 6 deletions
+2 -2
View File
@@ -231,8 +231,8 @@ function private.submit_query(k)
private.wait_for_results(function()
local _, total_count = GetNumAuctionItems(private.current_thread().params.type)
private.current_thread().total_pages = math.ceil(total_count / PAGE_SIZE)
if private.current_thread().total_pages >= private.current_thread().page + 1 then
private.wait_for_callback(private.current_thread().params.on_page_loaded, private.current_thread().page, private.current_thread().total_pages, function()
if max(1, private.current_thread().total_pages) >= private.current_thread().page + 1 then
private.wait_for_callback(private.current_thread().params.on_page_loaded, private.current_thread().page, max(1, private.current_thread().total_pages), function()
return k()
end)
else