From fa4ee722b2ff382f001b568a3257d42fe1cca995 Mon Sep 17 00:00:00 2001 From: Alex Shubert Date: Sun, 15 Dec 2013 13:05:17 +0400 Subject: [PATCH] shrunk some variable's scope to local --- QuestLevel.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QuestLevel.lua b/QuestLevel.lua index 989dce1..2ee4653 100644 --- a/QuestLevel.lua +++ b/QuestLevel.lua @@ -46,7 +46,7 @@ function AutoTurnIn:ShowQuestLevelInWatchFrame() end for i = 1, #WATCHFRAME_LINKBUTTONS do - button = WATCHFRAME_LINKBUTTONS[i] + local button = WATCHFRAME_LINKBUTTONS[i] if( button.type == "QUEST" ) then local questIndex = GetQuestIndexForWatch(button.index) @@ -55,7 +55,7 @@ function AutoTurnIn:ShowQuestLevelInWatchFrame() if textLine.text:GetText() and (not string.find("", "^%[.*%].*")) then local title, level, _, _, _, _, _, isDaily = GetQuestLogTitle(questIndex) local questTypeIndex = GetQuestLogQuestType(questIndex) - tagString = AutoTurnIn.QuestTypesIndex[questTypeIndex] + local tagString = AutoTurnIn.QuestTypesIndex[questTypeIndex] if (not tagString) then --AutoTurnIn:Print("Please, inform addon author unknown QT for: " ..title) tagString = "" -- 1.7.9.5