From 22aaea63dff8965d8347b3b5428d49e8324b178a Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 21 Jul 2023 19:54:19 -0700 Subject: [PATCH] Update LearnGroupHOME.cs --- PKHeX.Core/Legality/LearnSource/Group/LearnGroupHOME.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/LearnSource/Group/LearnGroupHOME.cs b/PKHeX.Core/Legality/LearnSource/Group/LearnGroupHOME.cs index 9486dd292..195431381 100644 --- a/PKHeX.Core/Legality/LearnSource/Group/LearnGroupHOME.cs +++ b/PKHeX.Core/Legality/LearnSource/Group/LearnGroupHOME.cs @@ -246,7 +246,7 @@ private static void AddExclusiveMoves(Span result, PKM pk) IEncounterTemplate enc, MoveSourceType types, LearnOption option, ReadOnlySpan evos, IHomeSource local) where T : ILearnGroup { - var length = instance.MaxMoveID; + var length = instance.MaxMoveID + 1; var rent = ArrayPool.Shared.Rent(length); var temp = rent.AsSpan(0, length); instance.GetAllMoves(temp, pk, history, enc, types, option);