mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05: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
|
|
@ -902,8 +902,8 @@ protected override void SetDex(PKM pkm)
|
|||
{
|
||||
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…
Reference in New Issue
Block a user