From 42d8709f082607f4061f147b505e009876b94826 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Thu, 20 Jul 2023 00:56:31 +0200 Subject: [PATCH] Fix exception on Revert Designs. --- Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs b/Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs index d0305b9..0c51f5b 100644 --- a/Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs +++ b/Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs @@ -178,12 +178,13 @@ public class SetPanel private void DrawWarnings(AutoDesign design, int idx) { + if (design.Revert) + return; + var size = new Vector2(ImGui.GetFrameHeight()); size.X += ImGuiHelpers.GlobalScale; var (equipFlags, customizeFlags, _, _, _, _) = design.ApplyWhat(); - equipFlags &= design.Design.ApplyEquip; - customizeFlags &= design.Design.ApplyCustomize; var sb = new StringBuilder(); foreach (var slot in EquipSlotExtensions.EqdpSlots.Append(EquipSlot.MainHand).Append(EquipSlot.OffHand)) {