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);