From 6a4f715b76e03e5bb69447330aef70a27db2611c Mon Sep 17 00:00:00 2001 From: Xurkon Date: Mon, 8 Jun 2026 21:36:10 -0500 Subject: [PATCH] fix(learner): guard HasQuestReferences against flat-number entries on Area 52 Some Area 52 quest records store qData[2][3] as a flat number instead of a table-of-tables. The inner loop's entry[1] index then crashes with 'attempt to index local entry (a number value)'. Normalize with a type check before comparing. --- Modules/QuestieLearner.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/QuestieLearner.lua b/Modules/QuestieLearner.lua index 3dcf1b4..d18c70d 100644 --- a/Modules/QuestieLearner.lua +++ b/Modules/QuestieLearner.lua @@ -2212,7 +2212,8 @@ local function HasQuestReferences(itemId) end if qData[2] and qData[2][3] then for _, entry in ipairs(qData[2][3]) do - if entry[1] == itemId then + local entryId = type(entry) == "table" and entry[1] or entry + if entryId == itemId then return true end end