From 0b0dd21d93cef1e6ae1e01b4d2328c7de6fd5d4f Mon Sep 17 00:00:00 2001 From: javierhimura Date: Thu, 16 Feb 2017 12:14:10 +0100 Subject: [PATCH] Fix for the last commit --- PKHeX/Legality/Core.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX/Legality/Core.cs b/PKHeX/Legality/Core.cs index 86f384ac6..c7c9865ad 100644 --- a/PKHeX/Legality/Core.cs +++ b/PKHeX/Legality/Core.cs @@ -331,7 +331,7 @@ namespace PKHeX.Core int lvl = (pkm.HasOriginalMetLocation) ? pkm.Met_Level : getMaxLevelGeneration(pkm); if (lvl <= 0) - return lvl; + return null; // Get valid pre-evolutions IEnumerable p = getValidPreEvolutions(pkm);