summaryrefslogtreecommitdiff
path: root/src/pokedex.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-01-19 20:49:58 -0500
committerGitHub <noreply@github.com>2021-01-19 20:49:58 -0500
commit6999b237ebbc36c3aa751335027bcba6b5b3556f (patch)
tree993f5737fbe70a21f062e7d18908267a456f145d /src/pokedex.c
parentc2ddb92c9e0905a6625f83f7b5e0936b630c0597 (diff)
parent752982552e212dcb33d57c66342f87eba3ce9089 (diff)
Merge pull request #1309 from GriffinRichards/misc-macro
Use constants for item data, misc other constants/fixes
Diffstat (limited to 'src/pokedex.c')
-rw-r--r--src/pokedex.c4
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,