tostring(GetSpecializationInfo(GetSpecialization())) doesn't seem to work like you expect it to anymore.
vaendryl opened this issue ยท 1 comments
tested with an assasination rogue.
when I open the custom weights options menu I keep getting the error
Message: Interface\AddOns\GearHelper\GH_Options.lua:21: attempt to index field '?' (a nil value)
which refers to the line
return tostring(GearHelper.db.global.templates[(currentSpec)]["NOX"][stat])
if I change the line just above
local currentSpec = tostring(GetSpecializationInfo(GetSpecialization()))
to
local currentSpec = 259
it seems to work again. or at least the options page does. obviously this breaks if I swap to a different class/specc.
I also get a related error message when I hover over an item in my bags:
Message: Interface\AddOns\GearHelper\GearHelper.lua:337: Interface\AddOns\GearHelper\GH_Toolbox.lua:224: attempt to index field '?' (a nil value)
which refers to the line
if GearHelper.db.global.templates[currentSpec]["NOX"] == nil then
again, it looks like fetching the "currentSpec" fails.
emergency fixing that with a hack points me to gear/GH_template line 12 next. another hackfix now allows the tooltip to render properly.