Fixed Hoenn dex off by 1 issues (#6104)

This commit is contained in:
Frank DeBlasio 2025-01-27 09:52:03 -05:00 committed by GitHub
parent 37b6f031c8
commit f3f03ec43f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))