From ffc9e24a20aa00afea911faf0a15e4cfc0baa376 Mon Sep 17 00:00:00 2001 From: Repooc Date: Thu, 21 Aug 2014 21:16:42 -0400 Subject: [PATCH] Fix some errors I came across --- ElvUI_SLE/modules/characterframe/communication.lua | 4 ++-- ElvUI_SLE/modules/exprepbar.lua | 4 ---- ElvUI_SLE/modules/loot.lua | 10 ++++++---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ElvUI_SLE/modules/characterframe/communication.lua b/ElvUI_SLE/modules/characterframe/communication.lua index 2660e78..f4d2807 100644 --- a/ElvUI_SLE/modules/characterframe/communication.lua +++ b/ElvUI_SLE/modules/characterframe/communication.lua @@ -245,7 +245,7 @@ if not AISM then DataString = '0' end - for i = 1, MAX_NUM_TALENT_TIERS do + for i = 1, MAX_TALENT_TIERS do selectedSlot = '0' for k = 1, NUM_TALENT_COLUMNS do @@ -759,7 +759,7 @@ if not AISM then elseif self.DataTypeTable[DataType] == 'Specialization' then TableToSave.Specialization[Group].SpecializationID = stringTable[1] - for i = 1, MAX_NUM_TALENT_TIERS do + for i = 1, MAX_TALENT_TIERS do for k = 1, NUM_TALENT_COLUMNS do TableToSave.Specialization[Group]['Talent'..((i - 1) * NUM_TALENT_COLUMNS + k)] = k == stringTable[i + 1] and true or false end diff --git a/ElvUI_SLE/modules/exprepbar.lua b/ElvUI_SLE/modules/exprepbar.lua index 8061c45..00e3065 100644 --- a/ElvUI_SLE/modules/exprepbar.lua +++ b/ElvUI_SLE/modules/exprepbar.lua @@ -84,8 +84,6 @@ function M:UpdateExperience(event) bar.text:SetText(text) end - - self:UpdateExpRepAnchors() end function M:UpdateReputation(event) @@ -139,8 +137,6 @@ function M:UpdateReputation(event) end bar.text:SetText(text) end - - self:UpdateExpRepAnchors() end function M:ChatMsgCombat(event, ...) diff --git a/ElvUI_SLE/modules/loot.lua b/ElvUI_SLE/modules/loot.lua index 073a2fd..5c76cd2 100644 --- a/ElvUI_SLE/modules/loot.lua +++ b/ElvUI_SLE/modules/loot.lua @@ -275,10 +275,12 @@ function LT:LootShow() end function LT:Update() - if E.db.sle.loot.autoroll.enable then - E.Options.args.general.args.general.args.autoRoll.disabled = function() return true end - else - E.Options.args.general.args.general.args.autoRoll.disabled = function() return false end + if IsAddOnLoaded("ElvUI_Config") then + if E.db.sle.loot.autoroll.enable then + E.Options.args.general.args.general.args.autoRoll.disabled = function() return true end + else + E.Options.args.general.args.general.args.autoRoll.disabled = function() return false end + end end if E.db.sle.loot.autoroll.autoconfirm then -- 1.7.9.5