Fixed settings not saving
Brandon Talbot [07-24-16 - 18:34]
Fixed settings not saving
diff --git a/src/lua/settings/settingsController.lua b/src/lua/settings/settingsController.lua
index 467fde8..16eb664 100644
--- a/src/lua/settings/settingsController.lua
+++ b/src/lua/settings/settingsController.lua
@@ -21,7 +21,7 @@ function settings:Init()
self.realm = GetRealmName()
self.player = UnitName("player")
- DJBags_DB = {}
+ DJBags_DB = DJBags_DB or {}
DJBags_DB[self.realm] = DJBags_DB[self.realm] or {}
DJBags_DB[self.realm][self.player] = DJBags_DB[self.realm][self.player] or {}
DJBags_DB[self.realm][self.player].userDefined = DJBags_DB[self.realm][self.player].userDefined or {}