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.
This commit is contained in:
Robert Müller 2023-01-08 11:06:41 +01:00
parent 69931336fc
commit a0d4a55023

View file

@ -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;