Skip to content

Commit

Permalink
Fix various more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Snakybo committed Jun 19, 2024
1 parent d55ba0a commit 63c7e99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Clicked/Core/BindingProcessor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ function Addon:UpdateTalentCacheAndReloadBindings(delay, ...)
if isValid then
local entryId = nodeInfo.activeEntry ~= nil and nodeInfo.activeEntry.entryID or 0
local entryInfo = entryId ~= nil and C_Traits.GetEntryInfo(configId, entryId) or nil
local definitionInfo = entryInfo ~= nil and C_Traits.GetDefinitionInfo(entryInfo.definitionID) or nil
local definitionInfo = entryInfo ~= nil and entryInfo.definitionID ~= nil and C_Traits.GetDefinitionInfo(entryInfo.definitionID) or nil

if definitionInfo ~= nil then
local name = StripColorCodes(TalentUtil.GetTalentNameFromInfo(definitionInfo))
Expand Down
6 changes: 3 additions & 3 deletions Clicked/Core/Utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
local DisableAddOn = C_AddOns.DisableAddOn or DisableAddOn -- Deprecated in 10.2.0
local IsEquippedItem = C_Item.IsEquippedItem or IsEquippedItem -- Deprecated in 10.2.6
local GetItemInfo = C_Item.GetItemInfo or GetItemInfo -- Deprecated in 10.2.6
local GetSpellSubtext = C_Spell.GetSpellSubtext or GetSpellSubtext -- Deprecated in 11.0.0

local AceGUI = LibStub("AceGUI-3.0")

Expand Down Expand Up @@ -413,9 +414,8 @@ function Addon:GetBindingValue(binding)
assert(type(binding) == "table", "bad argument #1, expected table but got " .. type(binding))

if binding.type == Addon.BindingTypes.SPELL then
local spell = binding.action.spellValue
local spell = self:GetSpellInfo(value, not binding.action.spellMaxRank)
return spell ~= nil and spell.name ~= nil and spell.name or value
local spell = self:GetSpellInfo(binding.action.spellValue, not binding.action.spellMaxRank)
return spell ~= nil and spell.name ~= nil and spell.name or binding.action.spellValue
end

if binding.type == Addon.BindingTypes.ITEM then
Expand Down

0 comments on commit 63c7e99

Please sign in to comment.