From dd6746e5068b221ee8187977b575b17617f7e70c Mon Sep 17 00:00:00 2001 From: FosterProgramming Date: Sun, 12 Oct 2025 17:56:46 +0200 Subject: [PATCH] Fix bug causing hgss dex to freeze (#7936) --- src/pokedex_plus_hgss.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pokedex_plus_hgss.c b/src/pokedex_plus_hgss.c index 2e4463ac80..6e6d5abe22 100644 --- a/src/pokedex_plus_hgss.c +++ b/src/pokedex_plus_hgss.c @@ -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);