Block loadBoxes from locked slots

missed one!
This commit is contained in:
Kurt 2016-12-27 08:21:39 -08:00
parent 424ad65d4f
commit 2261a46670

View file

@ -3889,6 +3889,10 @@ namespace PKHeX
{
if (verifyPKMtoSAV(pk).Length > 0)
continue;
while (SAV.getIsSlotLocked(ctr/SAV.BoxSlotCount, ctr%SAV.BoxSlotCount))
ctr++;
SAV.setStoredSlot(pk, SAV.getBoxOffset(ctr/SAV.BoxSlotCount) + ctr%SAV.BoxSlotCount * SAV.SIZE_STORED, noSetb);
if (pk.Format != temp.Format) // Transferred
pastctr++;