Quantcast

Fixed a bug where a non-existant active weight would prevent class collapsing

Kevin Lyles [07-29-10 - 07:04]
Fixed a bug where a non-existant active weight would prevent class collapsing
Filename
weights.lua
diff --git a/weights.lua b/weights.lua
index f6ab71b..a5bc30c 100644
--- a/weights.lua
+++ b/weights.lua
@@ -423,8 +423,8 @@ local function loadClassButtons()
 			if weightFrame.name then
 				if ww_charVars.activeWeights[classFrame.class] then
 					for _, weight in ipairs(ww_charVars.activeWeights[classFrame.class]) do
-						used = true
 						if weight == weightFrame.name then
+							used = true
 							weightFrame.checkButton:SetChecked(true)
 							break
 						end