Skip to content

Commit bedf961

Browse files
Fix query.specializationIndex must be specified error after update (#2308)
Co-authored-by: Andrew Scott <[email protected]>
1 parent 0be5c79 commit bedf961

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

TellMeWhen.lua

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,23 +2832,26 @@ function TMW:UpdateTalentTextureCache()
28322832
if C_SpecializationInfo.GetTalentInfo and MAX_NUM_TALENT_TIERS and NUM_TALENT_COLUMNS then
28332833
-- Should handle all classic versions mop and below?
28342834
local talentInfoQuery = {};
2835-
2836-
for tier = 1, MAX_NUM_TALENT_TIERS do
2837-
for column = 1, NUM_TALENT_COLUMNS do
2838-
talentInfoQuery.tier = tier;
2839-
talentInfoQuery.column = column;
2840-
local talentInfo = C_SpecializationInfo.GetTalentInfo(talentInfoQuery);
2841-
2842-
local name = talentInfo.name
2843-
local tex = talentInfo.fileID
28442835

2845-
local lower = name and strlowerCache[name]
2846-
2847-
if lower then
2848-
SpellTexturesMetaIndex[lower] = tex
2849-
end
2850-
end
2851-
end
2836+
for spec = 1, TMW.GetNumSpecializations() do
2837+
for tier = 1, MAX_NUM_TALENT_TIERS do
2838+
for column = 1, NUM_TALENT_COLUMNS do
2839+
talentInfoQuery.tier = tier;
2840+
talentInfoQuery.column = column;
2841+
talentInfoQuery.specializationIndex = spec;
2842+
local talentInfo = C_SpecializationInfo.GetTalentInfo(talentInfoQuery);
2843+
2844+
local name = talentInfo.name
2845+
local tex = talentInfo.fileID
2846+
2847+
local lower = name and strlowerCache[name]
2848+
2849+
if lower then
2850+
SpellTexturesMetaIndex[lower] = tex
2851+
end
2852+
end
2853+
end
2854+
end
28522855
elseif MAX_TALENT_TIERS and NUM_TALENT_COLUMNS and GetTalentInfo then
28532856
for tier = 1, MAX_TALENT_TIERS do
28542857
for column = 1, NUM_TALENT_COLUMNS do

0 commit comments

Comments
 (0)