summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-04-22 19:53:28 +0000
committerrubidium <rubidium@openttd.org>2011-04-22 19:53:28 +0000
commit380d4b277b84e3205d557d289bc8ca5bdd22dafc (patch)
treebaa0b8a9af63377e0acbbdcbe27bb8f880e2512a /src/network
parent75b87c554f140be0b94358d66deeffed116621b2 (diff)
downloadopenttd-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.cpp2
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()) : "");
}
}