View Single Post
02-20-17, 12:32 AM   #24
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Your AceDB is working fine, but you replace the AceDB "global" table reference instead of editing the table
We should have seen it earlier tbh

https://gfycat.com/AcrobaticDefensiveFluke
Code:
@@ -107,15 +107,13 @@ function Experience:UpdateDB()
 	if relativeFrame == UIParent then
 		relativeFrame = "UIParent";
 	end

-	E.db.global = {
-		experience = {
-			["point"] = point,
-			["relativeFrame"] = relativeFrame,
-			["relativePoint"] = relativePoint,
-			["ofsx"] = ofsx,
-			["ofsy"] = ofsy,
-		},
-	}
+	E.db.global.experience = {
+		point = point,
+		relativeFrame = relativeFrame,
+		relativePoint = relativePoint,
+		ofsx = ofsx,
+		ofsy = ofsy,
+	}
 end

Looking at the rest there are a lot of things you could improve on, but I respectfully won't bother you with that

Last edited by Ketho : 02-20-17 at 12:42 AM.
  Reply With Quote