From b2cad6f70d30722d9c43a788f463935686a69506 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Wed, 19 May 2010 01:29:56 -0500 Subject: [PATCH] Moved a variable declaration to make code clearer --- weights.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/weights.lua b/weights.lua index 1737172..4055f99 100644 --- a/weights.lua +++ b/weights.lua @@ -180,8 +180,6 @@ end --opens a new config pane to edit stat weights function configSelectWeight(weightFrame) - local empty - if ww_weights.rightPanel.weightFrame then ww_weights.rightPanel.weightFrame.text.highlightFrame:Hide() end @@ -195,7 +193,7 @@ function configSelectWeight(weightFrame) configResetWeight() for _, categoryFrame in ipairs(ww_weights.rightPanel.scrollFrame.categories) do - empty = true + local empty = true for _, statFrame in ipairs({categoryFrame:GetChildren()}) do if statFrame.statName then if statFrame.statValue:GetText() ~= "" then -- 1.7.9.5