diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-01-19 04:34:50 -0500 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-01-19 04:34:50 -0500 |
commit | 3f36529cba3a26d5de72ed7a2af6fa804c16adb5 (patch) | |
tree | 7f871652323546737e0a1279555ee5a53b87e5a8 /src | |
parent | 9dd867689e85e2ce7f50ec9fc0344220e60a7777 (diff) |
Use NUMBER_OF_MON_TYPES in pokedex search
Diffstat (limited to 'src')
-rw-r--r-- | src/pokedex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pokedex.c b/src/pokedex.c index 6aa347994..44fd89d50 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -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, |