mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 04:23:12 +00:00
Fix bit wrap met location matching
Use ulong bitmask not u32
This commit is contained in:
parent
3d29cc5a19
commit
8279615040
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ public sealed record EncounterStatic4(GameVersion Version) : EncounterStatic(Ver
|
|||
var value = location - first;
|
||||
if ((uint)value >= 64)
|
||||
return false;
|
||||
return (permit & (1u << value)) != 0;
|
||||
return (permit & (1ul << value)) != 0;
|
||||
}
|
||||
|
||||
public static bool IsMatchRoamerLocation(uint permit, int location, int first)
|
||||
|
|
Loading…
Reference in a new issue