From a305e09fbd4eec6ae20b36ca2171311c9ae85fe6 Mon Sep 17 00:00:00 2001 From: TheXaman <48356183+TheXaman@users.noreply.github.com> Date: Mon, 14 Mar 2022 10:19:03 +0100 Subject: [PATCH] small fix preventing selection sprites if no forms exist --- src/pokedex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokedex.c b/src/pokedex.c index a9bd1fa017..bf53e5d2b3 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -8651,7 +8651,7 @@ static void Task_HandleFormsScreenInput(u8 taskId) u8 offset_y = 34; if (!sPokedexView->sFormScreenData.inSubmenu) { - if (JOY_NEW(A_BUTTON)) + if (JOY_NEW(A_BUTTON) && sPokedexView->sFormScreenData.numForms != 0) { sPokedexView->sFormScreenData.inSubmenu = TRUE; sPokedexView->sFormScreenData.arrowSpriteId = CreateSprite(&gSpriteTemplate_Arrow, base_x + offset_x, base_y, 0);