Make sure the items properties are set right
Adrian L Lange [03-30-13 - 19:39]
Make sure the items properties are set right
diff --git a/HabeebIt.lua b/HabeebIt.lua
index edd84d9..7b5878d 100644
--- a/HabeebIt.lua
+++ b/HabeebIt.lua
@@ -93,8 +93,6 @@ local function GetItemLine(name, texture, slot, itemClass, itemID, itemLink)
Item:SetScript('OnClick', OnClick)
Item:SetScript('OnEnter', OnEnter)
Item:SetScript('OnLeave', OnLeave)
-
- items[Item] = true
end
Item.Icon:SetTexture(texture)
@@ -105,6 +103,8 @@ local function GetItemLine(name, texture, slot, itemClass, itemID, itemLink)
Item.itemID = itemID
Item.itemLink = itemLink
+ items[Item] = true
+
return Item
end