summaryrefslogtreecommitdiff
path: root/src/pokedex.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-07-08 15:45:31 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-07-08 15:45:31 -0400
commit431c60c92c59ba0c2d5a658e0c490f46162bb5d2 (patch)
tree7f03009ed9475a0f8e7aac6ed6ca2ab89a527577 /src/pokedex.c
parent8b462f3f6c30de55767808136861e892fc3f0356 (diff)
parent8b80b417e2172a44098a22473717da20585bd15d (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald into doc-confetti
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);