diff options
author | Kurausukun <lord.uber1@gmail.com> | 2021-02-11 23:12:55 -0500 |
---|---|---|
committer | Kurausukun <lord.uber1@gmail.com> | 2021-02-11 23:12:55 -0500 |
commit | ccd75ad32e08465fb38773b2961433916c2ae96c (patch) | |
tree | ad886ffa3d11bf8cc350cb0f038703bd79653ab4 | |
parent | 2ff02b3c5ae6791fa19ff367779c03c95923b779 (diff) |
words are hard
-rw-r--r-- | include/pokedex_screen.h | 2 | ||||
-rw-r--r-- | src/pokedex_screen.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/pokedex_screen.h b/include/pokedex_screen.h index 72754ca63..128fc1ad3 100644 --- a/include/pokedex_screen.h +++ b/include/pokedex_screen.h @@ -11,8 +11,6 @@ #define DEX_CATEGORY_URBAN 7 #define DEX_CATEGORY_RARE 8 -#define DEX_CATEGORY_SIZE NELEMS(gDexCategories) - #include "pokedex.h" extern const struct PokedexEntry gPokedexEntries[]; diff --git a/src/pokedex_screen.c b/src/pokedex_screen.c index 7d4c576db..b3f3d18ad 100644 --- a/src/pokedex_screen.c +++ b/src/pokedex_screen.c @@ -3172,7 +3172,7 @@ u8 sub_8106A20(u16 a0) int i, j, k, categoryCount, categoryPageCount, v5; u16 species; - for (i = 0; i < DEX_CATEGORY_SIZE; i++) + for (i = 0; i < NELEMS(gDexCategories); i++) { categoryCount = gDexCategories[i].count; for (j = 0; j < categoryCount; j++) @@ -3219,7 +3219,7 @@ u8 sub_8106B60(u16 species) sub_8104AB0(species, 3, 1); if (!IsNationalPokedexEnabled() && SpeciesToNationalPokedexNum(species) > KANTO_DEX_COUNT) - return CreateTask(sub_8106BD8, 0); + return CreateTask(sub_8106BD8, 0); sub_810250C(); gTasks[gUnknown_203ACF0->field_00].func = sub_8106BE8; |