diff --git a/client/Client.cpp b/client/Client.cpp index 26e87014d..9312e228b 100644 --- a/client/Client.cpp +++ b/client/Client.cpp @@ -348,7 +348,9 @@ void CClient::save(const std::string & fname) void CClient::endNetwork() { - CGI->mh->endNetwork(); + if (CGI->mh) + CGI->mh->endNetwork(); + if (CPlayerInterface::battleInt) CPlayerInterface::battleInt->endNetwork();