Quantcast

mentalo fix

Steven Jackson [09-24-14 - 13:33]
mentalo fix
Filename
Interface/AddOns/SVUI/system/mentalo.lua
diff --git a/Interface/AddOns/SVUI/system/mentalo.lua b/Interface/AddOns/SVUI/system/mentalo.lua
index 71adc92..32c9c50 100644
--- a/Interface/AddOns/SVUI/system/mentalo.lua
+++ b/Interface/AddOns/SVUI/system/mentalo.lua
@@ -466,7 +466,7 @@ local function SetSVMovable(frame, moveName, title, raised, snap, dragStopFunc)
 	movable:RegisterForDrag("LeftButton", "RightButton")
 	movable:SetScript("OnDragStart", function(this)
 		if InCombatLockdown()then SV:AddonMessage(ERR_NOT_IN_COMBAT)return end
-		if SV.db["system"].stickyFrames then
+		if SV.db.stickyFrames then
 			Sticky:StartMoving(this, SV["Snap"], movable.snapOffset, movable.snapOffset, movable.snapOffset, movable.snapOffset)
 		else
 			this:StartMoving()
@@ -480,7 +480,7 @@ local function SetSVMovable(frame, moveName, title, raised, snap, dragStopFunc)
 	movable:SetScript("OnDragStop", function(this)
 		if InCombatLockdown()then SV:AddonMessage(ERR_NOT_IN_COMBAT)return end
 		userHolding = false;
-		if SV.db["system"].stickyFrames then
+		if SV.db.stickyFrames then
 			Sticky:StopMoving(this)
 		else
 			this:StopMovingOrSizing()
@@ -555,7 +555,7 @@ local function SetSVMovable(frame, moveName, title, raised, snap, dragStopFunc)
 		if arg == "RightButton"then
 			userHolding = false;
 			SVUI_MentaloPrecision:Show()
-			if SV.db["system"].stickyFrames then
+			if SV.db.stickyFrames then
 				Sticky:StopMoving(this)
 			else
 				this:StopMovingOrSizing()