Attempt to fix weird error in comm. Related to #270
Darthpred [08-16-16 - 08:24]
Attempt to fix weird error in comm. Related to #270
diff --git a/ElvUI_SLE/modules/Armory/InspectArmory/Communication.lua b/ElvUI_SLE/modules/Armory/InspectArmory/Communication.lua
index 8c9ed7a..8de4980 100644
--- a/ElvUI_SLE/modules/Armory/InspectArmory/Communication.lua
+++ b/ElvUI_SLE/modules/Armory/InspectArmory/Communication.lua
@@ -309,14 +309,15 @@ if not AISM.Revision or AISM.Revision < Revision then
for i = 1, MAX_TALENT_TIERS do
for k = 1, NUM_TALENT_COLUMNS do
Talent, _, _, isSelected = T.GetTalentInfo(i, k, Group)
-
+ if Talent then
Talent = ((i - 1) * NUM_TALENT_COLUMNS + k)..'_'..Talent..(isSelected == true and '_1' or '')
-
- Spec = Spec..'/'..Talent
-
- if not SpecTable["Spec"..Step..'_Talent'..((i - 1) * NUM_TALENT_COLUMNS + k)] or SpecTable["Spec"..Step..'_Talent'..((i - 1) * NUM_TALENT_COLUMNS + k)] ~= Talent then
- SpecTable["Spec"..Step..'_Talent'..((i - 1) * NUM_TALENT_COLUMNS + k)] = Talent
- DataString = (DataString and DataString..'/' or '')..Talent
+
+ Spec = Spec..'/'..Talent
+
+ if not SpecTable["Spec"..Step..'_Talent'..((i - 1) * NUM_TALENT_COLUMNS + k)] or SpecTable["Spec"..Step..'_Talent'..((i - 1) * NUM_TALENT_COLUMNS + k)] ~= Talent then
+ SpecTable["Spec"..Step..'_Talent'..((i - 1) * NUM_TALENT_COLUMNS + k)] = Talent
+ DataString = (DataString and DataString..'/' or '')..Talent
+ end
end
end
end