Skip to content

Commit

Permalink
[KeyBinding] Update GetMacroSpell returns
Browse files Browse the repository at this point in the history
  • Loading branch information
ghr74 committed Sep 24, 2018
1 parent 53f2fda commit 8148879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HeroLib/Events/KeyBinding.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ local function ParseBar(Bar, Override)
local buttonActionType, buttonActionId = GetActionInfo(ActionButton_GetPagedID(Button))
if buttonActionType == "macro" then
--Item is a macro so check it plans to cast a spell
local _, _, macrospellid = GetMacroSpell(buttonActionId)
local macrospellid = GetMacroSpell(buttonActionId)
--If it casts a spell change buttonTexture to that spell texture else to nil
if macrospellid ~= nil then
ButtonTexture = GetSpellTexture(macrospellid)
Expand Down

0 comments on commit 8148879

Please sign in to comment.