C_QuestLog.GetDistanceSqToQuest() sometimes returns nil
Pingumania opened this issue ยท 4 comments
ExtraQuestButton\Utils.lua:61: bad argument #1 to 'sqrt' (number expected, got nil)
I am not 100% sure but I think this happens when there is a quest that has no indicator on the world map.
Happened on this quest:
https://www.wowhead.com/quest=31004/preserved-in-amber
Yup, same here
19x ExtraQuestButton\Utils.lua:61: bad argument #1 to 'sqrt' (number expected, got nil)
[string "=[C]"]: ?
[string "@ExtraQuestButton\Utils.lua"]:61: in function <ExtraQuestButton\Utils.lua:20>
[string "@ExtraQuestButton\Utils.lua"]:115: in function `GetClosestQuestItem'
[string "@ExtraQuestButton\ExtraQuestButton-90000.19-Release.lua"]:142: in function `callback'
[string "@ExtraQuestButton\mixins\EventHandlerMixin.lua"]:56: in function <ExtraQuestButton\mixins\EventHandlerMixin.lua:53>
Locals:
(*temporary) = nil
(*temporary) = "number expected, got nil"
@Stanzilla which quest? It's an easy fix, I'm just curious.
Fixed with 4a836ae.