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:
Kurt 2019-04-22 22:25:09 -07:00
parent 9861128b63
commit 0bd6caf927

View file

@ -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;