Mega Macro

Mega Macro

39.7k Downloads

Error deleting a macro when Mega Macro isn't fully activated

kamari0 opened this issue · 1 comments

commented

Whenever I go to delete a macro on the latest commit (Macro gets deleted, game justs asks to reload UI and provides error message below)

Message: Interface\AddOns\MegaMacro\src/mega-macro-engine.lua:177: attempt to compare number with nil
Time: Sun Oct 11 23:46:10 2020
Count: 2
Stack: Interface\AddOns\MegaMacro\src/mega-macro-engine.lua:177: attempt to compare number with nil
[string "=[C]"]: ?
[string "@Interface\AddOns\MegaMacro\src/mega-macro-engine.lua"]:177: in function <Interface\AddOns\MegaMacro\src/mega-macro-engine.lua:174>
[string "@Interface\AddOns\MegaMacro\src/mega-macro-engine.lua"]:321: in function `OnMacroDeleted'
[string "@Interface\AddOns\MegaMacro\src/mega-macro.lua"]:199: in function `Delete'
[string "@Interface\AddOns\MegaMacro\src/windows/mega-macro.window.lua"]:260: in function `OnAccept'
[string "@Interface\FrameXML\StaticPopup.lua"]:5118: in function `StaticPopup_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals: 

Also still having issues dragging macro onto bar after creating one: (Previously created macros I can move)

https://imgur.com/xumgg4n

commented

Hi @kamari0,

My data is a bit different to yours but please check out the fix I committed and see if it fixed it for you 😄

Regards,
Sellorio