Quantcast

Fix the issue with nil 'blizzframes'

James Whitehead II [10-12-10 - 20:55]
Fix the issue with nil 'blizzframes'
Filename
Clique.lua
diff --git a/Clique.lua b/Clique.lua
index 9ed60bf..addfd3e 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -185,21 +185,7 @@ function addon:InitializeDatabase()

     if reset then
         CliqueDB2 = {
-            settings = {
-                blizzframes = {
-                    PlayerFrame = true,
-                    PetFrame = true,
-                    TargetFrame = true,
-                    TargetFrameToT = true,
-                    FocusFrame = true,
-                    FocusFrameToT = true,
-                    arena = true,
-                    party = true,
-                    compactraid = true,
-                    compactparty = true,
-                    boss = true,
-                }
-            },
+            settings = {},
             bindings = {},
             dbversion = current_db_version,
         }
@@ -211,6 +197,19 @@ function addon:InitializeDatabase()
     if not db.settings[charKey] then
         db.settings[charKey] = {
             profileKey = charKey,
+            blizzframes = {
+                PlayerFrame = true,
+                PetFrame = true,
+                TargetFrame = true,
+                TargetFrameToT = true,
+                FocusFrame = true,
+                FocusFrameToT = true,
+                arena = true,
+                party = true,
+                compactraid = true,
+                compactparty = true,
+                boss = true,
+            }
         }
     end