mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
Fix cloning overflow
use the count of slots in a box, not 30 hardcoded Thanks Wanderer1391!
This commit is contained in:
parent
3da9bcd0df
commit
9506b3bbe1
1 changed files with 1 additions and 1 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue