From b8618e9aa1ea6f8a0636e7864287e5115a86e620 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 28 Dec 2015 09:23:59 -0800 Subject: [PATCH] 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! --- Misc/SAV6.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/SAV6.cs b/Misc/SAV6.cs index 19e0df358..184f2dba8 100644 --- a/Misc/SAV6.cs +++ b/Misc/SAV6.cs @@ -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) {