Quantcast

druid fix

Steven Jackson [09-14-14 - 02:56]
druid fix
Filename
Interface/AddOns/SVUI/system/load.lua
diff --git a/Interface/AddOns/SVUI/system/load.lua b/Interface/AddOns/SVUI/system/load.lua
index 1e36a18..01de390 100644
--- a/Interface/AddOns/SVUI/system/load.lua
+++ b/Interface/AddOns/SVUI/system/load.lua
@@ -47,6 +47,8 @@ local NewHook = hooksecurefunc;
 SYSTEM UPDATES
 ##########################################################
 ]]--
+local playerClass = select(2,UnitClass("player"));
+
 local function DeleteOldSavedVars()
 	--[[ BEGIN DEPRECATED ]]--
     if SVUI_DATA then SVUI_DATA = nil end
@@ -153,6 +155,10 @@ function SV:Load()
 		SVUI_Profile.STORED[3] = {}
 	    SVUI_Profile.STORED[3].LAYOUT = SVUI_Profile.STORED[1].LAYOUT
 	end
+	if playerClass == "DRUID" and not SVUI_Profile.STORED[4] then
+		SVUI_Profile.STORED[4] = {}
+	    SVUI_Profile.STORED[4].LAYOUT = SVUI_Profile.STORED[1].LAYOUT
+	end
     for k,v in pairs(SVUI_Profile) do
     	if(k ~= "STORED" and k ~= "SAFEDATA") then
     		SVUI_Profile[k] = nil