From 76ab09f024ff4195b7b9bb1e8d2a9a24109e420d Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 26 Dec 2021 01:06:30 -0800 Subject: [PATCH] Inline constant value --- PKHeX.Core/PKM/PK1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/PKM/PK1.cs b/PKHeX.Core/PKM/PK1.cs index 04b64fe14..ce3605181 100644 --- a/PKHeX.Core/PKM/PK1.cs +++ b/PKHeX.Core/PKM/PK1.cs @@ -108,7 +108,7 @@ private void SetSpeciesValues(int value) return; var table = EvolutionTree.GetEvolutionTree(1); - var evos = table.GetValidPreEvolutions(this, maxLevel: 100, maxSpeciesOrigin: -1, skipChecks: true); + var evos = table.GetValidPreEvolutions(this, maxLevel: 100, maxSpeciesOrigin: Legal.MaxSpeciesID_1, skipChecks: true); var baseSpecies = evos[^1].Species; if (IsCatchRatePreEvolutionRate(baseSpecies, value, rate)) return;