mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
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:
parent
69931336fc
commit
a0d4a55023
|
@ -183,7 +183,7 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
|
||||||
}
|
}
|
||||||
|
|
||||||
static CListBox s_ListBox;
|
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;
|
int NumPlayers = 0;
|
||||||
static int s_PrevSelectedIndex = -1;
|
static int s_PrevSelectedIndex = -1;
|
||||||
|
|
Loading…
Reference in a new issue