From 8bb3e4a595a5a517964641d629990c0526f760a1 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Thu, 21 Nov 2024 05:10:07 +0000 Subject: [PATCH] options_menu: forget selected item upon opening --- UnleashedRecomp/ui/options_menu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index 86126282..03b5e9bc 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -1071,6 +1071,7 @@ void OptionsMenu::Open(bool isPause, SWA::EMenuType pauseMenuType) g_categoryIndex = 0; g_categoryAnimMin = { 0.0f, 0.0f }; g_categoryAnimMax = { 0.0f, 0.0f }; + g_selectedItem = nullptr; /* Store button state so we can track it later and prevent the first item being selected. */