mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-07 23:08:47 -05:00
Fix Bad Egg creation (bitflipping) on setting Dex
Adding two offset ptrs is bad; only use one! Guess I originally intended to have languageflags be a shift of the PokeDex ptr, but that's not right! Thanks DeadSkullzJr!
This commit is contained in:
@@ -562,7 +562,7 @@ public void setDex(PK6 pk6)
|
||||
|
||||
// Set the Language
|
||||
if (lang < 0) lang = 1;
|
||||
Data[PokeDex + PokeDexLanguageFlags + (bit * 7 + lang) / 8] |= (byte)(1 << (((bit * 7) + lang) % 8));
|
||||
Data[PokeDexLanguageFlags + (bit * 7 + lang) / 8] |= (byte)(1 << (((bit * 7) + lang) % 8));
|
||||
}
|
||||
public int getBoxWallpaper(int box)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user