From c6e4c39bc5dd94d40e07fc445e6162ff95074ce8 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 29 Aug 2018 21:58:44 -0700 Subject: [PATCH] Fix gen1 single chain for gen2 tradeback scenario invalid mon -> make sure array is big enough for later move parsing https://projectpokemon.org/home/forums/topic/47283-unhandled-exception-when-importing-set-from-clipboard-after-opening-gen-i-save-file/ --- PKHeX.Core/Legality/Evolutions/EvolutionChain.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs index 994669e79..c332862bd 100644 --- a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs +++ b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs @@ -29,7 +29,7 @@ private static List[] GetChainBase(int maxgen) private static List[] GetChainSingle(PKM pkm, List CompleteEvoChain) { - var chain = GetChainBase(pkm.Format); + var chain = GetChainBase(Math.Max(2, pkm.Format)); chain[pkm.Format] = CompleteEvoChain; return chain; }