Match CreatePokeDexList

Cherry-picked from the pret Ruby repo
This commit is contained in:
PokeCodec authored and PokeCodec committed 2020-07-07 20:57:20 -04:00
1 parent 46f4a4bbf7
commit 938aec45d3
1 file changed
+2 -6
+2 -6
View File
@@ -2218,18 +2218,14 @@ static void CreatePokedexList(u8 dexMode, u8 order)
} }
else else
{ {
bool32 r10; s16 r5, r10;
s16 r5; for (i = 0, r5 = 0, r10 = 0; i < temp_dexCount; i++)
r10 = r5 = i = 0;
for (i = 0; i < temp_dexCount; i++)
{ {
temp_dexNum = i + 1; temp_dexNum = i + 1;
if (GetSetPokedexFlag(temp_dexNum, FLAG_GET_SEEN)) if (GetSetPokedexFlag(temp_dexNum, FLAG_GET_SEEN))
r10 = 1; r10 = 1;
if (r10) if (r10)
{ {
asm(""); //Needed to match for some reason
sPokedexView->pokedexList[r5].dexNum = temp_dexNum; sPokedexView->pokedexList[r5].dexNum = temp_dexNum;
sPokedexView->pokedexList[r5].seen = GetSetPokedexFlag(temp_dexNum, FLAG_GET_SEEN); sPokedexView->pokedexList[r5].seen = GetSetPokedexFlag(temp_dexNum, FLAG_GET_SEEN);
sPokedexView->pokedexList[r5].owned = GetSetPokedexFlag(temp_dexNum, FLAG_GET_CAUGHT); sPokedexView->pokedexList[r5].owned = GetSetPokedexFlag(temp_dexNum, FLAG_GET_CAUGHT);