From ab02c7ca7a6ea08e5623fbd76a85ad26175f9ab4 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Tue, 2 Aug 2016 03:02:05 +0200 Subject: [PATCH] bugfix --- tabs/search/core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabs/search/core.lua b/tabs/search/core.lua index dbae968..ac85d06 100644 --- a/tabs/search/core.lua +++ b/tabs/search/core.lua @@ -821,7 +821,7 @@ function private.set_form(filters) UIDropDownMenu_SetSelectedValue(m.subclass_dropdown, subclass_index) elseif filter[1] == 'slot' then UIDropDownMenu_Initialize(m.slot_dropdown, m.initialize_slot_dropdown) -- TODO, wtf, why is this needed - UIDropDownMenu_SetSelectedValue(m.slot_dropdown, Aux.info.item_slot_index(class_index, subclass_index, filter[2])) + UIDropDownMenu_SetSelectedValue(m.slot_dropdown, ({GetAuctionInvTypes(class_index, subclass_index)})[Aux.info.item_slot_index(class_index, subclass_index, filter[2])]) elseif filter[1] == 'quality' then UIDropDownMenu_Initialize(m.quality_dropdown, m.initialize_quality_dropdown) -- TODO, wtf, why is this needed UIDropDownMenu_SetSelectedValue(m.quality_dropdown, Aux.info.item_quality_index(filter[2]))