mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Avoid copy of CServerInfo
in loop in IsRegistered
This commit is contained in:
parent
39dd2a552d
commit
394ed87ac9
|
@ -2148,7 +2148,7 @@ bool CServerBrowser::IsRegistered(const NETADDR &Addr)
|
|||
const int NumServers = m_pHttp->NumServers();
|
||||
for(int i = 0; i < NumServers; i++)
|
||||
{
|
||||
const CServerInfo Info = m_pHttp->Server(i);
|
||||
const CServerInfo &Info = m_pHttp->Server(i);
|
||||
for(int j = 0; j < Info.m_NumAddresses; j++)
|
||||
{
|
||||
if(net_addr_comp(&Info.m_aAddresses[j], &Addr) == 0)
|
||||
|
|
Loading…
Reference in a new issue