mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-15 05:04:16 +01:00
Fix exception on Revert Designs.
This commit is contained in:
parent
15dc22f803
commit
42d8709f08
1 changed files with 3 additions and 2 deletions
|
|
@ -178,12 +178,13 @@ public class SetPanel
|
||||||
|
|
||||||
private void DrawWarnings(AutoDesign design, int idx)
|
private void DrawWarnings(AutoDesign design, int idx)
|
||||||
{
|
{
|
||||||
|
if (design.Revert)
|
||||||
|
return;
|
||||||
|
|
||||||
var size = new Vector2(ImGui.GetFrameHeight());
|
var size = new Vector2(ImGui.GetFrameHeight());
|
||||||
size.X += ImGuiHelpers.GlobalScale;
|
size.X += ImGuiHelpers.GlobalScale;
|
||||||
|
|
||||||
var (equipFlags, customizeFlags, _, _, _, _) = design.ApplyWhat();
|
var (equipFlags, customizeFlags, _, _, _, _) = design.ApplyWhat();
|
||||||
equipFlags &= design.Design.ApplyEquip;
|
|
||||||
customizeFlags &= design.Design.ApplyCustomize;
|
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
foreach (var slot in EquipSlotExtensions.EqdpSlots.Append(EquipSlot.MainHand).Append(EquipSlot.OffHand))
|
foreach (var slot in EquipSlotExtensions.EqdpSlots.Append(EquipSlot.MainHand).Append(EquipSlot.OffHand))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue