From 98fec850efde05daa72259c937b1eac05b2c695a Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 11 Sep 2017 19:19:07 -0400 Subject: Fixed bug where Pokémon's language was not serialized properly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gba/source/serialize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gba/source/serialize.c') diff --git a/gba/source/serialize.c b/gba/source/serialize.c index ddd3ef2..12afbdc 100644 --- a/gba/source/serialize.c +++ b/gba/source/serialize.c @@ -90,7 +90,7 @@ void PokemonIntermediateInit( pki->metLocation = sub3->metLocation; pki->pokeball = sub3->pokeball; pki->altAbility = sub3->altAbility; - pki->language = bpkm->language & 3; + pki->language = bpkm->language & 7; // Derive nature from the personality value. pki->nature = (bpkm->personality % 25); -- cgit 1.4.1