From ba3aeaaf1cae8840fb1f3b1b5b1cd54a5e5bb103 Mon Sep 17 00:00:00 2001 From: Simon Hirsig Date: Wed, 30 Sep 2015 12:11:30 +0200 Subject: [PATCH] small fix for qualified name --- buy.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buy.lua b/buy.lua index 0da3fb7c..4ac2470 100644 --- a/buy.lua +++ b/buy.lua @@ -331,7 +331,7 @@ function AuxBuyCategoryDropDown_Initialize(arg1) UIDropDownMenu_AddButton({ text= 'All', value = value, - func = AuxBuyCategoryDropDown_OnClick('All', value), + func = AuxBuyCategoryDropDown_OnClick, }, 1) for i, class in pairs({ GetAuctionItemClasses() }) do @@ -373,7 +373,7 @@ function AuxBuyCategoryDropDown_Initialize(arg1) end function AuxBuyCategoryDropDown_OnClick() - local qualified_name = ({ GetAuctionItemClasses() })[this.value.class] + local qualified_name = ({ GetAuctionItemClasses() })[this.value.class] or 'All' if this.value.subclass then local subclass_name = ({ GetAuctionItemSubclasses(this.value.class) })[this.value.subclass] qualified_name = qualified_name .. ' - ' .. subclass_name