From ba197863cf16c4ac817a4672459d4580043de9bf Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Sat, 8 Nov 2025 02:24:24 +0300 Subject: [PATCH] Don't reset item view focus during realignment (#8771) --- apps/openmw/mwgui/itemview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/itemview.cpp b/apps/openmw/mwgui/itemview.cpp index ae295cd4ea..8fdb0b387d 100644 --- a/apps/openmw/mwgui/itemview.cpp +++ b/apps/openmw/mwgui/itemview.cpp @@ -82,9 +82,10 @@ namespace MWGui if (Settings::gui().mControllerMenus) { - mControllerFocus = -1; if (mItemCount > 0) mControllerFocus = std::clamp(mControllerFocus, 0, mItemCount - 1); + else + mControllerFocus = -1; updateControllerFocus(-1, mControllerFocus); }