Fix some errors I came across
Repooc [08-22-14 - 01:16]
Fix some errors I came across
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