mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
commit
13fce08af8
|
@ -1807,8 +1807,7 @@ int main(int argc, const char **argv) // ignore_convention
|
||||||
void CServer::GetClientAddr(int ClientID, NETADDR *pAddr)
|
void CServer::GetClientAddr(int ClientID, NETADDR *pAddr)
|
||||||
{
|
{
|
||||||
if(ClientID >= 0 && ClientID < MAX_CLIENTS && m_aClients[ClientID].m_State == CClient::STATE_INGAME) {
|
if(ClientID >= 0 && ClientID < MAX_CLIENTS && m_aClients[ClientID].m_State == CClient::STATE_INGAME) {
|
||||||
NETADDR temp = *m_NetServer.ClientAddr(ClientID);
|
*pAddr = *m_NetServer.ClientAddr(ClientID);
|
||||||
pAddr = &temp;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue