mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 13:58:33 +00:00
Fix male-only dex bit wiping
only wipe the index specific bits, don't wipe everything but the index specific bits
This commit is contained in:
parent
9861128b63
commit
0bd6caf927
1 changed files with 2 additions and 2 deletions
|
@ -902,8 +902,8 @@ namespace PKHeX.Core
|
|||
{
|
||||
case 255: // Genderless
|
||||
case 0: // Male Only
|
||||
Data[ofs + (brSize * 2)] &= mask;
|
||||
Data[ofs + (brSize * 3)] &= mask;
|
||||
Data[ofs + (brSize * 2)] &= (byte)~mask; // unset
|
||||
Data[ofs + (brSize * 3)] &= (byte)~mask; // unset
|
||||
break;
|
||||
case 254: // Female Only
|
||||
Data[ofs + (brSize * 2)] |= mask;
|
||||
|
|
Loading…
Add table
Reference in a new issue