Quantcast

Fixed EquipSet hook to save data

p3lim-52096 [06-13-09 - 12:27]
Fixed EquipSet hook to save data

git-svn-id: svn://svn.wowinterface.com/Broker_Equipment-429/trunk@21 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 27666dd..22933eb 100644
--- a/Broker_Equipment/Broker_Equipment.lua
+++ b/Broker_Equipment/Broker_Equipment.lua
@@ -158,10 +158,14 @@ function addon:VARIABLES_LOADED()
 	GearManagerToggleButton:Show()
 end

+
 hooksecurefunc('EquipmentManager_EquipSet', function(funcName)
 	for index = 1, GetNumEquipmentSets() do
 		local name, icon = GetEquipmentSetInfo(index)
-		return name == funcName and updateInfo(name, icon)
+		if(name == funcName) then
+			updateInfo(name, icon)
+			break
+		end
 	end
 end)