Quantcast

Fixed triggers always being "changed" once a change is made (even if changed back)

Kevin Lyles [07-29-10 - 16:16]
Fixed triggers always being "changed" once a change is made (even if changed back)
Filename
weights.xml
diff --git a/weights.xml b/weights.xml
index 545bbc3..743bd91 100644
--- a/weights.xml
+++ b/weights.xml
@@ -283,7 +283,8 @@
 				</Anchors>
 				<Scripts>
 					<OnClick>
-						if self:GetChecked() == ww_weights.rightPanel.statList.triggers[self:GetText()] then
+						-- The nots convert things to boolean (instead of 1/nil)
+						if not self:GetChecked() == not ww_weights.rightPanel.statList.triggers[self:GetText()] then
 							ww_weights.rightPanel.changedTriggers[self] = nil
 							local changed = false
 							for _ in pairs(ww_weights.rightPanel.changedStats) do