Update undo/redo

Closes #2059
This commit is contained in:
Kurt 2018-07-16 06:40:35 -07:00
parent 9a1695f319
commit 6ee534c4b1

View file

@ -270,7 +270,7 @@ namespace PKHeX.WinForms.Controls
return;
SlotChange change = UndoStack.Pop();
if (change.Slot >= (int)SlotIndex.Party)
if (change.Box < 0)
return;
RedoStack.Push(new SlotChange
@ -289,7 +289,7 @@ namespace PKHeX.WinForms.Controls
return;
SlotChange change = RedoStack.Pop();
if (change.Slot >= (int)SlotIndex.Party)
if (change.Box < 0)
return;
UndoStack.Push(new SlotChange