Quantcast

Fixed GetTextureIndex function

p3lim-52096 [06-01-09 - 09:59]
Fixed GetTextureIndex function

git-svn-id: svn://svn.wowinterface.com/Broker_Equipment-429/trunk@17 ec0254a7-aafd-4d69-bcb1-797bd6548cda
Filename
Broker_Equipment/Broker_Equipment.lua
diff --git a/Broker_Equipment/Broker_Equipment.lua b/Broker_Equipment/Broker_Equipment.lua
index d995b0d..8cc5b1a 100644
--- a/Broker_Equipment/Broker_Equipment.lua
+++ b/Broker_Equipment/Broker_Equipment.lua
@@ -58,6 +58,7 @@ local broker = LibStub('LibDataBroker-1.1'):NewDataObject(addonName, {

 -- borrowed from tekkub's EquipSetUpdater
 local function GetTextureIndex(tex)
+	RefreshEquipmentSetIconInfo()
 	tex = tex:lower()
 	local numicons = GetNumMacroIcons()
 	for i=INVSLOT_FIRST_EQUIPPED,INVSLOT_LAST_EQUIPPED do if GetInventoryItemTexture("player", i) then numicons = numicons + 1 end end