From 6da4b3d41c552fc9c1d891ff0962bc416d5fe65a Mon Sep 17 00:00:00 2001 From: pokecal Date: Thu, 9 Mar 2017 07:59:07 +0900 Subject: [PATCH] Fix, stop using alt-ShinyIcon outside the box (#929) with no filter for slot value, the alt-icon will be used for PKM-QR icon, team, and others. --- 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 a91363d0e..2b5b7813c 100644 --- a/PKHeX.WinForms/Util/PKMUtil.cs +++ b/PKHeX.WinForms/Util/PKMUtil.cs @@ -103,7 +103,7 @@ private static Image getSprite(PKM pkm, SaveFile SAV, int box, int slot, bool fl return null; bool isBoxBGRed = false; - if (SAV.Generation == 7 || SAV.Generation == 6) + if (pkm.Species != 0 && slot >= 0 && slot < 30 && (SAV.Generation == 7 || SAV.Generation == 6)) { switch (SAV.getBoxWallpaper(box)) {