Update LearnGroupHOME.cs

This commit is contained in:
Kurt
2023-07-21 19:54:19 -07:00
parent 92d65dc6a4
commit 22aaea63df

View File

@@ -246,7 +246,7 @@ private static void AddExclusiveMoves(Span<bool> result, PKM pk)
IEncounterTemplate enc,
MoveSourceType types, LearnOption option, ReadOnlySpan<EvoCriteria> evos, IHomeSource local) where T : ILearnGroup
{
var length = instance.MaxMoveID;
var length = instance.MaxMoveID + 1;
var rent = ArrayPool<bool>.Shared.Rent(length);
var temp = rent.AsSpan(0, length);
instance.GetAllMoves(temp, pk, history, enc, types, option);