Fix inBox

include 0
This commit is contained in:
pokecal 2017-03-13 14:23:39 +09:00
parent cc5b065a39
commit 5cf36df360

View File

@ -98,7 +98,7 @@ private static Image getSprite(PKM pkm, SaveFile SAV, int box, int slot, bool fl
if (!pkm.Valid)
return null;
bool inBox = slot > 0 && slot < 30;
bool inBox = slot >= 0 && slot < 30;
var sprite = pkm.Species != 0 ? pkm.Sprite(isBoxBGRed: inBox && BoxWallpaper.getWallpaperRed(SAV, box)) : null;
if (slot <= -1) // from tabs