From d7deba0d19a88b69dac31b703fb15a1ad2f36df4 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 1 May 2010 16:17:19 +0200 Subject: [PATCH] Failsafe not so failsafe afterall --- Spequip.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 1.7.9.5