Skip to content

Commit

Permalink
Fix GH issue #9
Browse files Browse the repository at this point in the history
- I thought C_QuestLog.GetQuestObjectives would always return table, either containing the objectives or empty, but if fired on login, it returns nil
  • Loading branch information
ahakola committed Aug 22, 2024
1 parent 9be319b commit c9e2d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DMFQuest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@
numFulfilled number number of partial objectives fulfilled
numRequired number number of partial objectives required
]]
if #objectives > 0 then
if objectives and #objectives > 0 then
objectives = objectives[1]
end

Expand Down

0 comments on commit c9e2d86

Please sign in to comment.