Quantcast

fixed an install error with non existing mover table

Darthpred [10-26-12 - 10:27]
fixed an install error with non existing mover table
Filename
ElvUI_SLE/ElvUI_SLE.lua
diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua
index ea3b033..52e81e0 100644
--- a/ElvUI_SLE/ElvUI_SLE.lua
+++ b/ElvUI_SLE/ElvUI_SLE.lua
@@ -55,11 +55,13 @@ function E:UpdateAll()
 	E:GetModule('RaidUtility'):MoveButton()

 	if not E:HasMoverBeenMoved("LeftChatMover") and E.db.datatexts.leftChatPanel then
+		if not E.db.movers then E.db.movers = {}; end
 		E.db.movers.LeftChatMover = "BOTTOMLEFTUIParentBOTTOMLEFT021"
 		E:SetMoversPositions()
 	end

 	if not E:HasMoverBeenMoved("RightChatMover") and E.db.datatexts.rightChatPanel then
+		if not E.db.movers then E.db.movers = {}; end
 		E.db.movers.RightChatMover = "BOTTOMRIGHTUIParentBOTTOMRIGHT021"
 		E:SetMoversPositions()
 	end
@@ -78,11 +80,13 @@ function SLE:Initialize()
 	SLE:Tutorials()
 	SLE:ConfigCats()
 	if not E:HasMoverBeenMoved("LeftChatMover") and E.db.datatexts.leftChatPanel then
+		if not E.db.movers then E.db.movers = {}; end
 		E.db.movers.LeftChatMover = "BOTTOMLEFTUIParentBOTTOMLEFT021"
 		E:SetMoversPositions()
 	end

 	if not E:HasMoverBeenMoved("RightChatMover") and E.db.datatexts.rightChatPanel then
+		if not E.db.movers then E.db.movers = {}; end
 		E.db.movers.RightChatMover = "BOTTOMRIGHTUIParentBOTTOMRIGHT021"
 		E:SetMoversPositions()
 	end