mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 06:46:05 -05:00
Fix order of operation
Closes #909 yeah bit shifts are after +/- silly me
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user