Fix bug causing hgss dex to freeze (#7936)

This commit is contained in:
FosterProgramming 2025-10-12 17:56:46 +02:00 committed by GitHub
parent dd412c766a
commit dd6746e506
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2421,6 +2421,8 @@ static bool8 LoadPokedexListPage(u8 page)
// when returning to search results after selecting an evo, we have to restore
// the original dexNum because the search results page doesn't rebuild the list
sPokedexListItem->dexNum = sPokedexView->originalSearchSelectionNum;
sPokedexListItem->seen = GetSetPokedexFlag(sPokedexView->originalSearchSelectionNum, FLAG_GET_SEEN);
sPokedexListItem->owned = GetSetPokedexFlag(sPokedexView->originalSearchSelectionNum, FLAG_GET_CAUGHT);
sPokedexView->originalSearchSelectionNum = 0;
}
CreateMonSpritesAtPos(sPokedexView->selectedPokemon, 0xE);