diff --git a/PKHeX.Core/Legality/Encounters/Templates/Gen9a/LumioseSolver.cs b/PKHeX.Core/Legality/Encounters/Templates/Gen9a/LumioseSolver.cs index 61439a7bd..9d44da953 100644 --- a/PKHeX.Core/Legality/Encounters/Templates/Gen9a/LumioseSolver.cs +++ b/PKHeX.Core/Legality/Encounters/Templates/Gen9a/LumioseSolver.cs @@ -224,9 +224,7 @@ private static bool TryGetSeedNoPID(in GenerateParam9a param, PKM pk, out ulong { if (Volatile.Read(ref found)) { state.Stop(); return; } - uint start = (uint)range.start; - uint endExclusive = (uint)range.end; // safe due to batching within 0..2^32 - + var (start, endExclusive) = range; // keep as ulong, can't overflow since endExclusive is at most 2^32 for (ulong high = start; high < endExclusive; high++) { if (Volatile.Read(ref found)) { state.Stop(); return; }