Merge branch 'master' of https://github.com/pret/pokeemerald into ui-standardize
This commit is contained in:
+5
-5
@@ -4701,7 +4701,7 @@ static int DoPokedexSearch(u8 dexMode, u8 order, u8 abcGroup, u8 bodyColor, u8 t
|
||||
{
|
||||
species = NationalPokedexNumToSpecies(sPokedexView->pokedexList[i].dexNum);
|
||||
|
||||
if (bodyColor == gBaseStats[species].bodyColor)
|
||||
if (bodyColor == gSpeciesInfo[species].bodyColor)
|
||||
{
|
||||
sPokedexView->pokedexList[resultsCount] = sPokedexView->pokedexList[i];
|
||||
resultsCount++;
|
||||
@@ -4727,8 +4727,8 @@ static int DoPokedexSearch(u8 dexMode, u8 order, u8 abcGroup, u8 bodyColor, u8 t
|
||||
{
|
||||
species = NationalPokedexNumToSpecies(sPokedexView->pokedexList[i].dexNum);
|
||||
|
||||
types[0] = gBaseStats[species].type1;
|
||||
types[1] = gBaseStats[species].type2;
|
||||
types[0] = gSpeciesInfo[species].types[0];
|
||||
types[1] = gSpeciesInfo[species].types[1];
|
||||
if (types[0] == type1 || types[1] == type1)
|
||||
{
|
||||
sPokedexView->pokedexList[resultsCount] = sPokedexView->pokedexList[i];
|
||||
@@ -4745,8 +4745,8 @@ static int DoPokedexSearch(u8 dexMode, u8 order, u8 abcGroup, u8 bodyColor, u8 t
|
||||
{
|
||||
species = NationalPokedexNumToSpecies(sPokedexView->pokedexList[i].dexNum);
|
||||
|
||||
types[0] = gBaseStats[species].type1;
|
||||
types[1] = gBaseStats[species].type2;
|
||||
types[0] = gSpeciesInfo[species].types[0];
|
||||
types[1] = gSpeciesInfo[species].types[1];
|
||||
if ((types[0] == type1 && types[1] == type2) || (types[0] == type2 && types[1] == type1))
|
||||
{
|
||||
sPokedexView->pokedexList[resultsCount] = sPokedexView->pokedexList[i];
|
||||
|
||||
Reference in New Issue
Block a user