From 10aa6617969669ccba6de98c61fbe37d9bf38600 Mon Sep 17 00:00:00 2001 From: andrew6180 <16847730+andrew6180@users.noreply.github.com> Date: Tue, 5 Aug 2025 10:48:01 -0700 Subject: [PATCH] Fix lua error for char advancement upgrade --- core/gears.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/gears.lua b/core/gears.lua index 25478fce..c00e5629 100644 --- a/core/gears.lua +++ b/core/gears.lua @@ -2706,7 +2706,12 @@ for _, class in ipairs(CLASS_SORT_ORDER) do local specs = C_ClassInfo.GetAllSpecs(class) for _, spec in ipairs(specs) do local specInfo = C_ClassInfo.GetSpecInfo(class, spec) - local thumbnail = ClassTalentUtil.GetThumbnailAtlas(class, spec) + local thumbnail + if ClassTalentUtil then + thumbnail = ClassTalentUtil.GetThumbnailAtlas(class, spec) + else + thumbnail = CharacterAdvancementUtil.GetThumbnailAtlas(class, spec) + end Details.validSpecIds[specInfo.ID] = true Details.specToRole[specInfo.ID] = GetRoleFromSpecInfo(specInfo) Details.textureToSpec[thumbnail] = specInfo.ID