Fix: prevent crash when quest name is nil in PrintDifficultyColor

This commit is contained in:
Xurkon
2026-03-29 04:25:55 -05:00
parent c61a70d98b
commit d2732b9b4d
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -179,6 +179,10 @@ function QuestieLib:GetColoredQuestName(questId, showLevel, showState, blizzLike
local name = QuestieDB.QueryQuestSingle(questId, "name")
local level, _ = QuestieLib.GetTbcLevel(questId);
if name == nil then
return nil
end
if showLevel then
name = QuestieLib:GetQuestString(questId, name, level, blizzLike)
end