AzeriteTooltip

AzeriteTooltip

3M Downloads

Bug: Lua Error after updating Bagnon (With temp fix)

Nukme opened this issue ยท 2 comments

commented

version:
AzeriteTooltip 2.0.7
Bagnon 8.2.17

environment:
WOW BFA@Windows 10, zhCN

description:
A Lua error pops up after updating Bagnon from 8.2.16 to 8.2.17, and no extra info is appended to the azerite armor tooltip frame.

11x AzeriteTooltip\AzeriteTooltip-2.0.6.lua:152: Usage: hooksecurefunc([table,] "function", hookfunc)
[C]: in function `hooksecurefunc'
AzeriteTooltip\AzeriteTooltip-2.0.6.lua:152: in function <AzeriteTooltip\AzeriteTooltip.lua:146>
[C]: ?
Ace3\AceAddon-3.0\AceAddon-3.0-12.lua:70: in function <Ace3\AceAddon-3.0\AceAddon-3.0.lua:65>
Ace3\AceAddon-3.0\AceAddon-3.0-12.lua:527: in function `EnableAddon'
Ace3\AceAddon-3.0\AceAddon-3.0-12.lua:620: in function <Ace3\AceAddon-3.0\AceAddon-3.0.lua:605>
[C]: ?
[C]: in function `LoadAddOn'
FrameXML\UIParent.lua:448: in function `UIParentLoadAddOn'
FrameXML\UIParent.lua:491: in function `CombatLog_LoadUI'
FrameXML\UIParent.lua:1242: in function <FrameXML\UIParent.lua:1138>
commented

Update:

The author of Bagnon has done an overhaul of the code and changed some variable names, which causes bug for AzeriteTooltip.

Solution:
change line 152 of AzeriteTooltip.lua to

hooksecurefunc(Bagnon.Item, "Update", function(self)
commented

Hey,

I've pushed this fix in the new version. Thanks !