Fix order of operation

Closes #909
yeah bit shifts are after +/- silly me
This commit is contained in:
Kurt
2017-02-28 23:13:23 -08:00
parent c083a2e565
commit 58bd3640b4

View File

@@ -759,7 +759,7 @@ protected override void setDex(PKM pkm)
const int brSize = 0x40;
int bit = pkm.Species - 1;
byte mask = (byte) (1 << (bit&7));
int ofs = PokeDex + bit>>3 + 0x4;
int ofs = PokeDex + (bit>>3) + 0x4;
// Set the Species Owned Flag
Data[ofs + brSize*0] |= mask;