From 3e23e7f460a26bc5da5693de7238519681f3c9ea Mon Sep 17 00:00:00 2001 From: Patchzy <64382339+patchzyy@users.noreply.github.com> Date: Sun, 31 May 2026 11:32:23 +0200 Subject: [PATCH] Fix Mii color selection guard --- .../Popups/MiiManagement/MiiEditor/EditorEyebrows.axaml.cs | 2 +- .../Views/Popups/MiiManagement/MiiEditor/EditorEyes.axaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WheelWizard/Views/Popups/MiiManagement/MiiEditor/EditorEyebrows.axaml.cs b/WheelWizard/Views/Popups/MiiManagement/MiiEditor/EditorEyebrows.axaml.cs index 561aa25f..38310110 100644 --- a/WheelWizard/Views/Popups/MiiManagement/MiiEditor/EditorEyebrows.axaml.cs +++ b/WheelWizard/Views/Popups/MiiManagement/MiiEditor/EditorEyebrows.axaml.cs @@ -86,7 +86,7 @@ private void SetEyebrowColor(int index) return; var current = Editor.Mii.MiiEyebrows; - if (index == current.Type) + if (index == (int)current.Color) return; var result = MiiEyebrow.Create( diff --git a/WheelWizard/Views/Popups/MiiManagement/MiiEditor/EditorEyes.axaml.cs b/WheelWizard/Views/Popups/MiiManagement/MiiEditor/EditorEyes.axaml.cs index 0bf29744..46255ebc 100644 --- a/WheelWizard/Views/Popups/MiiManagement/MiiEditor/EditorEyes.axaml.cs +++ b/WheelWizard/Views/Popups/MiiManagement/MiiEditor/EditorEyes.axaml.cs @@ -83,7 +83,7 @@ private void SetEyeType(int index) private void SetEyeColor(int index) { var current = Editor.Mii.MiiEyes; - if (index == current.Type) + if (index == (int)current.Color) return; var result = MiiEye.Create(current.Type, current.Rotation, current.Vertical, (MiiEyeColor)index, current.Size, current.Spacing);