Flag invalid party slots

lol oops
pkmeditor pkm does not get illegal flag in the sprite, it's off to the
side. remove early return which masked the underlying issue
This commit is contained in:
Kurt 2018-08-31 21:35:53 -07:00
parent 45ab331805
commit b4400216dc
2 changed files with 1 additions and 4 deletions

View file

@ -1033,7 +1033,7 @@ namespace PKHeX.WinForms
if (pb == dragout) dragout.ContextMenuStrip.Enabled = pk.Species != 0 || HaX; // Species
pb.Image = pk.Sprite(C_SAV.SAV, -1, -1, true);
pb.Image = pk.Sprite(C_SAV.SAV, -1, -1, flagIllegal: false);
if (pb.BackColor == Color.Red)
pb.BackColor = Color.Transparent;
}

View file

@ -108,9 +108,6 @@ namespace PKHeX.WinForms
bool inBox = slot >= 0 && slot < 30;
var sprite = pkm.Species != 0 ? pkm.Sprite(isBoxBGRed: inBox && BoxWallpaper.IsWallpaperRed(SAV, box)) : null;
if (slot <= -1) // from tabs
return sprite;
if (flagIllegal)
{
if (box >= 0)