summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/pokedex_screen.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/pokedex_screen.h b/include/pokedex_screen.h
index 507750c81..72754ca63 100644
--- a/include/pokedex_screen.h
+++ b/include/pokedex_screen.h
@@ -11,10 +11,7 @@
#define DEX_CATEGORY_URBAN 7
#define DEX_CATEGORY_RARE 8
-#define DEX_CATEGORY_SIZE (sizeof(gDexCategories)/sizeof(struct { \
- const struct PokedexCategoryPage * page; \
- u8 count; \
- }))
+#define DEX_CATEGORY_SIZE NELEMS(gDexCategories)
#include "pokedex.h"