From 6ee534c4b1cff321b97c9da66684bfe22ef9cb39 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 16 Jul 2018 06:40:35 -0700 Subject: [PATCH] Update undo/redo Closes #2059 --- PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs index 27215ef8c..d3ada5316 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs @@ -270,7 +270,7 @@ public void ClickUndo() return; SlotChange change = UndoStack.Pop(); - if (change.Slot >= (int)SlotIndex.Party) + if (change.Box < 0) return; RedoStack.Push(new SlotChange @@ -289,7 +289,7 @@ public void ClickRedo() return; SlotChange change = RedoStack.Pop(); - if (change.Slot >= (int)SlotIndex.Party) + if (change.Box < 0) return; UndoStack.Push(new SlotChange