fix crash when ipc not enabled

This commit is contained in:
nullifiedcat 2017-07-31 09:01:44 +03:00
parent 2f89e3f697
commit 4b29948862

View File

@ -123,7 +123,8 @@ peer_t* peer { nullptr };
void UpdateServerAddress(bool shutdown) {
if (not peer)
return;
const char* s_addr = "0.0.0.0";
if (not shutdown and g_IEngine->GetNetChannelInfo()) {
s_addr = g_IEngine->GetNetChannelInfo()->GetAddress();