[3.0] Nil error when leaving mouseover
Muehe opened this issue · 3 comments
Version b54c897
!Questie\Questie.lua:900: attempt to index field `data' (a nil value)
!Questie\Questie.lua:900: in function <Interface\AddOns\!Questie\Questie.lua:895>
When leaving mouseover of Crier Goodman in Stormwind City (he has an area overlay (due to waypoints?)). Doesn't happen when mousing over while viewing Elwynn and the exclamation mark has wrong position seen from there.
Replied to your other post seems to be some kind of underlying issue here
as i said ill look into it when i get home from work. As i said probably
has something to do with the polygon data is incorrect and the data var is
where the icons customdata is handled if i remember corretly offhand
On 25 Oct 2015 19:41, "Muehe" [email protected] wrote:
!Questie\Questie.lua:900: attempt to index field `data' (a nil value)
!Questie\Questie.lua:900: in function <Interface\AddOns!Questie\Questie.lua:895>When leaving mouseover of Crier Goodman in Stormwind City (he has an area
overlay (due to waypoints?)). Doesn't happen when mousing over while
viewing Elwynn and the exclamation mark has wrong position seen from there.—
Reply to this email directly or view it on GitHub
#159.
There can be a very easy fix for this error... but it doesn't fix the underlying problem...
You can try it if you want, just wanna test it and havent got access to the wow client atm
function Questie:AvailableQuestTooltipLeave()
if(this.data and this.data.customData) then
if(this.data.customData.PolygonPoints) then
Polygon:CLEAR_ALL_NOTES();
BMS:Refresh(true);
end
if(this.data.customData.Polygon_Frames) then
for k, f in this.data.customData.Polygon_Frames do
f.texture:SetVertexColor(f.orgColor.r,f.orgColor.g,f.orgColor.b,f.orgColor.a);
end
end
end
if(WorldMapTooltip) then WorldMapTooltip:Hide(); WorldMapTooltip:SetFrameLevel(Tooltip_Gametooltip); end
if(GameTooltip) then GameTooltip:Hide(); GameTooltip:SetFrameLevel(Tooltip_Gametooltip); end
end