mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 23:23:43 +01:00
Use NUMBER_OF_MON_TYPES in pokedex search
This commit is contained in:
parent
9dd867689e
commit
3f36529cba
@ -1373,7 +1373,7 @@ static const struct SearchOptionText sDexSearchColorOptions[] =
|
||||
{},
|
||||
};
|
||||
|
||||
static const struct SearchOptionText sDexSearchTypeOptions[] =
|
||||
static const struct SearchOptionText sDexSearchTypeOptions[NUMBER_OF_MON_TYPES + 1] = // + 2 for "None" and terminator, - 1 for Mystery
|
||||
{
|
||||
{gText_DexEmptyString, gText_DexSearchTypeNone},
|
||||
{gText_DexEmptyString, gTypeNames[TYPE_NORMAL]},
|
||||
@ -1407,7 +1407,7 @@ static const u8 sOrderOptions[] =
|
||||
ORDER_SMALLEST,
|
||||
};
|
||||
|
||||
static const u8 sDexSearchTypeIds[] =
|
||||
static const u8 sDexSearchTypeIds[NUMBER_OF_MON_TYPES] =
|
||||
{
|
||||
TYPE_NONE,
|
||||
TYPE_NORMAL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user