From ff243d2b1afb5680136792f029dde4f1c0422003 Mon Sep 17 00:00:00 2001 From: Alexey Shmelev Date: Tue, 17 Oct 2023 18:25:24 -0400 Subject: [PATCH] fixed the save of a preset --- PallyPower.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PallyPower.lua b/PallyPower.lua index 2be6a9d..3180a32 100644 --- a/PallyPower.lua +++ b/PallyPower.lua @@ -180,6 +180,7 @@ function PallyPower:OnInitialize() PallyPower_SavedPresets = {} PallyPower_SavedPresets["PallyPower_Assignments"] = {[0] = {}} PallyPower_SavedPresets["PallyPower_NormalAssignments"] = {[0] = {}} + PallyPower_SavedPresets["PallyPower_AuraAssignments"] = {[0] = {}} end local h = _G["PallyPowerFrame"] h:ClearAllPoints() @@ -3833,6 +3834,10 @@ function PallyPower:AutoAssign() end function PallyPower:StorePreset() + PallyPower_SavedPresets = {} + PallyPower_SavedPresets["PallyPower_Assignments"] = {[0] = {}} + PallyPower_SavedPresets["PallyPower_NormalAssignments"] = {[0] = {}} + PallyPower_SavedPresets["PallyPower_AuraAssignments"] = {[0] = {}} --save current Assignments to preset PallyPower_SavedPresets["PallyPower_Assignments"][0] = tablecopy(PallyPower_Assignments) PallyPower_SavedPresets["PallyPower_NormalAssignments"][0] = tablecopy(PallyPower_NormalAssignments)