From 9538d53f93d1dd3758062554ffe4d400e84248df Mon Sep 17 00:00:00 2001 From: sneed <56992013+Sneed69@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:41:18 +0300 Subject: [PATCH] Don't specify sDexSearchTypeOptions array size (#4820) --- src/pokedex.c | 2 +- src/pokedex_plus_hgss.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pokedex.c b/src/pokedex.c index 8b70529a93..2cf8274db5 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -1387,7 +1387,7 @@ static const struct SearchOptionText sDexSearchColorOptions[] = {}, }; -static const struct SearchOptionText sDexSearchTypeOptions[NUMBER_OF_MON_TYPES] = // + 2 for "None" and terminator, - 2 for Mystery and Stellar +static const struct SearchOptionText sDexSearchTypeOptions[] = { {gText_DexEmptyString, gTypesInfo[TYPE_NONE].name}, {gText_DexEmptyString, gTypesInfo[TYPE_NORMAL].name}, diff --git a/src/pokedex_plus_hgss.c b/src/pokedex_plus_hgss.c index e3728132db..3788ea4c44 100644 --- a/src/pokedex_plus_hgss.c +++ b/src/pokedex_plus_hgss.c @@ -1901,7 +1901,7 @@ static const struct SearchOptionText sDexSearchColorOptions[] = {}, }; -static const struct SearchOptionText sDexSearchTypeOptions[NUMBER_OF_MON_TYPES] = // + 2 for "None" and terminator, - 2 for Mystery and Stellar +static const struct SearchOptionText sDexSearchTypeOptions[] = { {gText_DexEmptyString, gTypesInfo[TYPE_NONE].name}, {gText_DexEmptyString, gTypesInfo[TYPE_NORMAL].name},