mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Still show empty lines in votes
This commit is contained in:
parent
9b27da8e4a
commit
d8c97f0339
|
@ -468,7 +468,7 @@ void CMenus::RenderServerControlServer(CUIRect MainView)
|
|||
for(CVoteOptionClient *pOption = m_pClient->m_pVoting->m_pFirst; pOption; pOption = pOption->m_pNext)
|
||||
{
|
||||
i++;
|
||||
if(!str_find_nocase(pOption->m_aDescription, m_aFilterString))
|
||||
if(m_aFilterString[0] != '\0' && !str_find_nocase(pOption->m_aDescription, m_aFilterString))
|
||||
continue;
|
||||
|
||||
CListboxItem Item = UiDoListboxNextItem(pOption);
|
||||
|
|
Loading…
Reference in a new issue