From b7539d7964f8ea1396592bbc2f3ece76b683fe76 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Mon, 21 Mar 2016 03:04:36 +0100 Subject: [PATCH] bugfix --- cache.lua | 7 +++---- core.lua | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) 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 = {}, }