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:
Kurt
2015-12-28 09:23:59 -08:00
parent 3147d8b1df
commit b8618e9aa1

View File

@@ -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)
{