mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-13 12:25:17 -05:00
Fix Drag&Drop gen1 error
Dunno why it manifests itself only in gen<3, but this fixes the index out of range Reference #235
This commit is contained in:
@@ -3699,7 +3699,7 @@ private void pbBoxSlot_MouseMove(object sender, MouseEventArgs e)
|
||||
getQuickFiller(pb, SAV.getStoredSlot(DragInfo.slotSourceOffset));
|
||||
pb.BackgroundImage = null;
|
||||
|
||||
if (DragInfo.slotDestinationBoxNumber == DragInfo.slotSourceBoxNumber)
|
||||
if (DragInfo.slotDestinationBoxNumber == DragInfo.slotSourceBoxNumber && DragInfo.slotDestinationSlotNumber > -1)
|
||||
SlotPictureBoxes[DragInfo.slotDestinationSlotNumber].Image = img;
|
||||
|
||||
if (result == DragDropEffects.Copy) // viewed in tabs, apply 'view' highlight
|
||||
|
||||
Reference in New Issue
Block a user