From 814887928f1d432cfce77e8fce90acdd70dcefc6 Mon Sep 17 00:00:00 2001 From: ghr74 <28192634+ghr74@users.noreply.github.com> Date: Tue, 25 Sep 2018 01:34:20 +0200 Subject: [PATCH] [KeyBinding] Update GetMacroSpell returns --- HeroLib/Events/KeyBinding.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HeroLib/Events/KeyBinding.lua b/HeroLib/Events/KeyBinding.lua index 21275c09..20fce997 100755 --- a/HeroLib/Events/KeyBinding.lua +++ b/HeroLib/Events/KeyBinding.lua @@ -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)