From 17a9e6bd370f8a72cfe57518b4e0b6ce04ccd7c5 Mon Sep 17 00:00:00 2001 From: Alex Shubert Date: Sat, 18 Oct 2014 23:26:17 +0400 Subject: [PATCH] dungeon task have no text in header, hence lua error --- QuestLevel.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/QuestLevel.lua b/QuestLevel.lua index a727865..37d289a 100644 --- a/QuestLevel.lua +++ b/QuestLevel.lua @@ -50,9 +50,8 @@ function AutoTurnIn:ShowQuestLevelInWatchFrame() end for i = 1, #tracker.MODULES do - for id,block in pairs( tracker.MODULES[i].Header.module.usedBlocks) do - local text = block.HeaderText:GetText() - if block.questLogIndex and text and (not string.find(text, "^%[.*%].*")) then + for id,block in pairs( tracker.MODULES[i].Header.module.usedBlocks) do + if block.questLogIndex and block.HeaderText:GetText() and (not string.find(block.HeaderText:GetText(), "^%[.*%].*")) then local title, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, questID, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isStory = GetQuestLogTitle(block.questLogIndex) local questTypeIndex = GetQuestLogQuestType(block.questLogIndex) -- 1.7.9.5