Skip to content

Commit

Permalink
Fix reverting stains to game.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed May 29, 2024
1 parent 284920b commit 20983a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Glamourer/Gui/Equipment/EquipmentDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ private void DrawStain(in EquipDrawData data, bool small)
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)
Expand Down

0 comments on commit 20983a5

Please sign in to comment.