diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-07-08 15:51:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 15:51:58 -0400 |
commit | ebb6c4ee661758874972956a94eb06d38eaa18a8 (patch) | |
tree | bccf414f4a854c2fd88290cbe5c221f56ba34f17 /src/pokedex.c | |
parent | c0bc7e8f7b94ebab1e39b761aa194630e4c7bf6b (diff) | |
parent | 9ff261ac2a249a669a42381509ef288287535b4f (diff) |
Merge branch 'master' into doc-overworld
Diffstat (limited to 'src/pokedex.c')
-rw-r--r-- | src/pokedex.c | 8 |
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); |