Fix cloning overflow

use the count of slots in a box, not 30 hardcoded
Thanks Wanderer1391!
This commit is contained in:
Kurt 2017-01-29 17:50:06 -08:00
parent 3da9bcd0df
commit 9506b3bbe1

View file

@ -3506,7 +3506,7 @@ namespace PKHeX.WinForms
PKM pk = preparePKM();
int slotSkipped = 0;
for (int i = 0; i < 30; i++) // set to every slot in box
for (int i = 0; i < SAV.BoxSlotCount; i++) // set to every slot in box
{
if (SAV.getIsSlotLocked(CB_BoxSelect.SelectedIndex, i))
{ slotSkipped++; continue; }