diff options
author | rubidium <rubidium@openttd.org> | 2011-04-22 19:53:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-04-22 19:53:28 +0000 |
commit | 380d4b277b84e3205d557d289bc8ca5bdd22dafc (patch) | |
tree | baa0b8a9af63377e0acbbdcbe27bb8f880e2512a /src/network | |
parent | 75b87c554f140be0b94358d66deeffed116621b2 (diff) | |
download | openttd-380d4b277b84e3205d557d289bc8ca5bdd22dafc.tar.xz |
(svn r22372) -Fix (r22364) [FS#4598]: segmentation fault when trying to get the server's IP
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) : ""); } } |