From a0d4a55023b757d93c0f914825d9632e4e48cd6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sun, 8 Jan 2023 11:06:41 +0100 Subject: [PATCH] Fix server browser selection not being updated based an address input The selected server browser entry was not being updated anymore when the server address input is changed manually by the user or when selecting an entry in the LAN server list and then switching back to the Internet list. Regression from #6240. --- src/game/client/components/menus_browser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index 9ec3a8e0d..f59d803dd 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -183,7 +183,7 @@ void CMenus::RenderServerbrowserServerList(CUIRect View) } static CListBox s_ListBox; - s_ListBox.DoStart(ms_ListheaderHeight, NumServers, 1, 3, m_SelectedIndex, &View, false); + s_ListBox.DoStart(ms_ListheaderHeight, NumServers, 1, 3, -1, &View, false); int NumPlayers = 0; static int s_PrevSelectedIndex = -1;