Skip to content

Commit

Permalink
Fixed Hoenn dex off by 1 issues (#6104)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdeblasio authored Jan 27, 2025
1 parent 37b6f03 commit f3f03ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pokedex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit f3f03ec

Please sign in to comment.