Failsafe not so failsafe afterall
Adrian L Lange [05-01-10 - 14:17]
Failsafe not so failsafe afterall
diff --git a/Spequip.lua b/Spequip.lua
index f05abfa..582c0b6 100644
--- a/Spequip.lua
+++ b/Spequip.lua
@@ -1,8 +1,6 @@
local Spequip = CreateFrame('Frame')
Spequip:RegisterEvent('ACTIVE_TALENT_GROUP_CHANGED')
Spequip:SetScript('OnEvent', function()
- if(not GetNumTalentTabs()) then return end
-
local talentIndex
local mostPoints = -1
local mostPointsName
@@ -17,6 +15,7 @@ Spequip:SetScript('OnEvent', function()
end
end
+ if(not talentIndex) then return end
for index = 1, GetNumEquipmentSets() do
local name = GetEquipmentSetInfo(index)
if(name == talentIndex or name == mostPointsName) then