From f3f03ec43fda540b405debef4b0f98dbf5c15128 Mon Sep 17 00:00:00 2001 From: Frank DeBlasio <35279583+fdeblasio@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:52:03 -0500 Subject: [PATCH] Fixed Hoenn dex off by 1 issues (#6104) --- src/pokedex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pokedex.c b/src/pokedex.c index e4b5076e59..141ae3cdd2 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -4539,7 +4539,7 @@ u16 GetHoennPokedexCount(u8 caseID) u16 count = 0; u16 i; - for (i = 0; i < HOENN_DEX_COUNT; i++) + for (i = 0; i < HOENN_DEX_COUNT - 1; i++) { switch (caseID) { @@ -4582,7 +4582,7 @@ bool16 HasAllHoennMons(void) { u32 i, j; - for (i = 0; i < HOENN_DEX_COUNT; i++) + for (i = 0; i < HOENN_DEX_COUNT - 1; i++) { j = HoennToNationalOrder(i + 1); if (!(gSpeciesInfo[j].isMythical && !gSpeciesInfo[j].dexForceRequired) && !GetSetPokedexFlag(j, FLAG_GET_CAUGHT))