about summary refs log tree commit diff stats
path: root/gba
diff options
context:
space:
mode:
Diffstat (limited to 'gba')
-rw-r--r--gba/source/serialize.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gba/source/serialize.c b/gba/source/serialize.c index 069418d..d08dfc2 100644 --- a/gba/source/serialize.c +++ b/gba/source/serialize.c
@@ -99,7 +99,10 @@ void PokemonIntermediateInit(
99 // Derive gender from the personality value. 99 // Derive gender from the personality value.
100 int genderThreshold = baseStats->genderRatio; 100 int genderThreshold = baseStats->genderRatio;
101 101
102 if ((genderThreshold == 0) || (genderThreshold == 255)) 102 if (genderThreshold == 255)
103 {
104 pki->gender = 2;
105 } else if (genderThreshold == 0)
103 { 106 {
104 pki->gender = 0; 107 pki->gender = 0;
105 } else if (genderThreshold == 254) 108 } else if (genderThreshold == 254)