Quantcast

Moved a variable declaration to make code clearer

Kevin Lyles [05-19-10 - 06:29]
Moved a variable declaration to make code clearer
Filename
weights.lua
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