From c3e20249dcc2ed8a02f48244e65d58f7b3d788ef Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Sat, 13 Sep 2014 21:56:34 -0500 Subject: [PATCH] druid fix --- Interface/AddOns/SVUI/system/load.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 1.7.9.5