Changeset - r17598:9f06fc319ee2
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2011-04-22 19:53:28
rubidium@openttd.org
(svn r22372) -Fix (r22364) [FS#4598]: segmentation fault when trying to get the server's IP
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/network_server.cpp
Show inline comments
 
@@ -1983,11 +1983,11 @@ void NetworkPrintClients()
 
	NetworkClientInfo *ci;
 
	FOR_ALL_CLIENT_INFOS(ci) {
 
		IConsolePrintF(CC_INFO, _network_server ? "Client #%1d  name: '%s'  company: %1d  IP: %s" : "Client #%1d  name: '%s'  company: %1d",
 
				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()) : "");
 
	}
 
}
 

	
 
#endif /* ENABLE_NETWORK */
0 comments (0 inline, 0 general)