Quantcast

* Initialize db.plugins and sb.panels

James Whitehead II [12-16-08 - 08:02]
* Initialize db.plugins and sb.panels
Filename
NinjaPanel.lua
diff --git a/NinjaPanel.lua b/NinjaPanel.lua
index 2401d90..186eb3d 100644
--- a/NinjaPanel.lua
+++ b/NinjaPanel.lua
@@ -14,6 +14,8 @@ eventFrame:SetScript("OnEvent", function(self, event, arg1, ...)
 			NinjaPanelDB = {}
 		end
 		db = NinjaPanelDB
+		db.panels = db.panels or {}
+		db.plugins = db.plugins or {}

 		self:UnregisterEvent("ADDON_LOADED")
 		NinjaPanel:SpawnPanel("NinjaPanelTop", "TOP")