From 380d4b277b84e3205d557d289bc8ca5bdd22dafc Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 22 Apr 2011 19:53:28 +0000 Subject: (svn r22372) -Fix (r22364) [FS#4598]: segmentation fault when trying to get the server's IP --- src/network/network_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 9ceaa73a3..6fbb8a284 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -1986,7 +1986,7 @@ void NetworkPrintClients() ci->client_id, ci->client_name, ci->client_playas + (Company::IsValidID(ci->client_playas) ? 1 : 0), - _network_server ? NetworkClientSocket::GetByClientID(ci->client_id)->GetClientIP() : ""); + _network_server ? (ci->client_id == CLIENT_ID_SERVER ? "server" : NetworkClientSocket::GetByClientID(ci->client_id)->GetClientIP()) : ""); } } -- cgit v1.2.3-70-g09d2