From 5cf36df360987477e89aa714a9d8bb6aa6f312ff Mon Sep 17 00:00:00 2001 From: pokecal Date: Mon, 13 Mar 2017 14:23:39 +0900 Subject: [PATCH] Fix inBox include 0 --- PKHeX.WinForms/Util/PKMUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Util/PKMUtil.cs b/PKHeX.WinForms/Util/PKMUtil.cs index 20370ba13..2dbcca9ae 100644 --- a/PKHeX.WinForms/Util/PKMUtil.cs +++ b/PKHeX.WinForms/Util/PKMUtil.cs @@ -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