diff --git a/cache.lua b/cache.lua index 3ce827e..d10c20b 100644 --- a/cache.lua +++ b/cache.lua @@ -102,9 +102,8 @@ function private.scan_wdb() while processed <= 100 and item_id <= MAX_ITEM_ID do local itemstring = 'item:'..item_id local name, _, quality, level, class, subclass, max_stack, slot, texture = GetItemInfo(itemstring) - name = name and strlower(name) - if name and not aux_item_ids[name] then - aux_item_ids[name] = item_id + if name and not aux_item_ids[strlower(name)] then + aux_item_ids[strlower(name)] = item_id aux_items[item_id] = Aux.util.join({ name, quality or '', @@ -117,7 +116,7 @@ function private.scan_wdb() }, '#') local tooltip = Aux.info.tooltip(function(tt) tt:SetHyperlink(itemstring) end) if Aux.info.auctionable(tooltip, quality) then - tinsert(aux_auctionable_items, name) + tinsert(aux_auctionable_items, strlower(name)) end processed = processed + 1 end diff --git a/core.lua b/core.lua index c63483e..d5db2a1 100644 --- a/core.lua +++ b/core.lua @@ -1,5 +1,5 @@ Aux = { - version = '2.9.1', + version = '2.9.2', blizzard_ui_shown = false, orig = {}, }