summaryrefslogtreecommitdiff
path: root/src/pokedex.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-07-08 16:03:32 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-07-08 16:03:32 -0400
commitbeeb673ba16e02cacadb2de0ee3608d2106ed14a (patch)
tree8924e783fc8af67286cf45abcef95c065a3fd223 /src/pokedex.c
parent2ed1f7c6f92abe93d86b921709576b82970f0848 (diff)
parentebade7affb31d5bcdc17cdcd3895758010ee6f66 (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald into add-flagvarsave
Diffstat (limited to 'src/pokedex.c')
-rw-r--r--src/pokedex.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pokedex.c b/src/pokedex.c
index c3d38681c..d2e1a0666 100644
--- a/src/pokedex.c
+++ b/src/pokedex.c
@@ -2218,18 +2218,14 @@ static void CreatePokedexList(u8 dexMode, u8 order)
}
else
{
- bool32 r10;
- s16 r5;
-
- r10 = r5 = i = 0;
- for (i = 0; i < temp_dexCount; i++)
+ s16 r5, r10;
+ for (i = 0, r5 = 0, r10 = 0; i < temp_dexCount; i++)
{
temp_dexNum = i + 1;
if (GetSetPokedexFlag(temp_dexNum, FLAG_GET_SEEN))
r10 = 1;
if (r10)
{
- asm(""); //Needed to match for some reason
sPokedexView->pokedexList[r5].dexNum = temp_dexNum;
sPokedexView->pokedexList[r5].seen = GetSetPokedexFlag(temp_dexNum, FLAG_GET_SEEN);
sPokedexView->pokedexList[r5].owned = GetSetPokedexFlag(temp_dexNum, FLAG_GET_CAUGHT);