Skip to content

Commit 9431e4c

Browse files
committed
Minor adjustment to the respec buttons code that might fix a bug (see #94)
1 parent fc72b92 commit 9431e4c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

modules/respecButtonsInTreeUI.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ do
9393
function respecButtonMixin:OnClick()
9494
local specIndex = self:GetID();
9595
if C_SpecializationInfo.GetSpecialization() == specIndex then return end
96-
if ClassTalentHelper and ClassTalentHelper.SwitchToSpecializationByIndex then
97-
ClassTalentHelper.SwitchToSpecializationByIndex(specIndex)
98-
return
99-
end
96+
10097
C_SpecializationInfo.SetSpecialization(specIndex)
10198
Util:GetTalentFrame():SetCommitStarted(0)
10299
Module:RegisterEvent('ACTIVE_PLAYER_SPECIALIZATION_CHANGED')

0 commit comments

Comments
 (0)