Fix: Prevent nil index error in QuestieTooltips_RegisterObjectiveTooltip
This commit is contained in:
+3
-1
@@ -1325,7 +1325,9 @@ end
|
|||||||
function QuestieCompat:QuestieTooltips_RegisterObjectiveTooltip(questId, key, objective)
|
function QuestieCompat:QuestieTooltips_RegisterObjectiveTooltip(questId, key, objective)
|
||||||
if string.find(key, "m_") then
|
if string.find(key, "m_") then
|
||||||
local name = QuestieDB.QueryNPCSingle(tonumber(string.sub(key, 3)), "name")
|
local name = QuestieDB.QueryNPCSingle(tonumber(string.sub(key, 3)), "name")
|
||||||
npActiveQuestNPCs[name] = key
|
if name then
|
||||||
|
npActiveQuestNPCs[name] = key
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user