fix: add missing local profile in QuestieMap.ProcessQueue

ProcessQueue() references the global 'profile' at line 366 without
declaring it locally, causing 'attempt to index global profile (a nil)'
when called from the timer queue. All other functions in this file
declare local profile = Questie.db.profile before use.
This commit is contained in:
Xurkon
2026-06-05 06:08:54 -05:00
parent 581634d199
commit 2bdd1801c9
+1
View File
@@ -356,6 +356,7 @@ function QuestieMap.ProcessQueue()
end
local scaleValue = QuestieMap.GetScaleValue()
local profile = Questie.db.profile
for _ = 1, math.min(24, math.max(#mapDrawQueue, #minimapDrawQueue)) do
local mapDrawCall = tremove(mapDrawQueue, 1);
if mapDrawCall then