Skip to content

Commit

Permalink
Merge pull request #111 from KevinTyrrell/patch-1
Browse files Browse the repository at this point in the history
fix: nil pointer exception
  • Loading branch information
Gogo1951 authored Sep 26, 2022
2 parents 47d46aa + 57fa5de commit 2557ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Outfitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,7 @@ function Outfitter:DeleteSelectedOutfit()
end

function Outfitter:TalentsChanged()
self.CanDualWield2H = self.PlayerClass == "WARRIOR" and GetSpecialization() == 2
self.CanDualWield2H = self.PlayerClass == "WARRIOR" and select(5, GetTalentInfo(2, 24)) > 0
end

function Outfitter:SetScript(pOutfit, pScript)
Expand Down

0 comments on commit 2557ec6

Please sign in to comment.