Fix bit wrap met location matching

Use ulong bitmask not u32
This commit is contained in:
Kurt 2023-02-02 15:12:18 -08:00
parent 3d29cc5a19
commit 8279615040

View file

@ -124,7 +124,7 @@ public sealed record EncounterStatic4(GameVersion Version) : EncounterStatic(Ver
var value = location - first; var value = location - first;
if ((uint)value >= 64) if ((uint)value >= 64)
return false; return false;
return (permit & (1u << value)) != 0; return (permit & (1ul << value)) != 0;
} }
public static bool IsMatchRoamerLocation(uint permit, int location, int first) public static bool IsMatchRoamerLocation(uint permit, int location, int first)