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:
@@ -356,6 +356,7 @@ function QuestieMap.ProcessQueue()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local scaleValue = QuestieMap.GetScaleValue()
|
local scaleValue = QuestieMap.GetScaleValue()
|
||||||
|
local profile = Questie.db.profile
|
||||||
for _ = 1, math.min(24, math.max(#mapDrawQueue, #minimapDrawQueue)) do
|
for _ = 1, math.min(24, math.max(#mapDrawQueue, #minimapDrawQueue)) do
|
||||||
local mapDrawCall = tremove(mapDrawQueue, 1);
|
local mapDrawCall = tremove(mapDrawQueue, 1);
|
||||||
if mapDrawCall then
|
if mapDrawCall then
|
||||||
|
|||||||
Reference in New Issue
Block a user