From 20983a56058441494d90a6a2ea1cec4fedbb75b1 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Wed, 29 May 2024 15:45:07 +0200 Subject: [PATCH] Fix reverting stains to game. --- Glamourer/Gui/Equipment/EquipmentDrawer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Glamourer/Gui/Equipment/EquipmentDrawer.cs b/Glamourer/Gui/Equipment/EquipmentDrawer.cs index b21f700..c5e5f7e 100644 --- a/Glamourer/Gui/Equipment/EquipmentDrawer.cs +++ b/Glamourer/Gui/Equipment/EquipmentDrawer.cs @@ -452,8 +452,8 @@ public class EquipmentDrawer else if (_stainCombo.CurrentSelection.Key == Stain.None.RowIndex) data.SetStain(Stain.None.RowIndex); - if (ResetOrClear(data.Locked, false, data.AllowRevert, true, data.CurrentStain, data.GameStain, Stain.None.RowIndex, out _)) - data.SetStain(Stain.None.RowIndex); + if (ResetOrClear(data.Locked, false, data.AllowRevert, true, data.CurrentStain, data.GameStain, Stain.None.RowIndex, out var newStain)) + data.SetStain(newStain); } private void DrawItem(in EquipDrawData data, out string label, bool small, bool clear, bool open)