mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-19 10:26:27 +01:00
(svn r22372) -Fix (r22364) [FS#4598]: segmentation fault when trying to get the server's IP
This commit is contained in:
parent
75b87c554f
commit
380d4b277b
@ -1986,7 +1986,7 @@ void NetworkPrintClients()
|
|||||||
ci->client_id,
|
ci->client_id,
|
||||||
ci->client_name,
|
ci->client_name,
|
||||||
ci->client_playas + (Company::IsValidID(ci->client_playas) ? 1 : 0),
|
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()) : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user