Merge pull request #145 from XXLTomate/FixMute

This fixes mute.
This commit is contained in:
Shereef Marzouk 2012-02-02 15:23:30 -08:00
commit 13fce08af8

View file

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