mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix possible crash on closing game from main menu
This commit is contained in:
parent
6f6555d19c
commit
d6ff7896fe
@ -348,7 +348,9 @@ void CClient::save(const std::string & fname)
|
|||||||
|
|
||||||
void CClient::endNetwork()
|
void CClient::endNetwork()
|
||||||
{
|
{
|
||||||
CGI->mh->endNetwork();
|
if (CGI->mh)
|
||||||
|
CGI->mh->endNetwork();
|
||||||
|
|
||||||
if (CPlayerInterface::battleInt)
|
if (CPlayerInterface::battleInt)
|
||||||
CPlayerInterface::battleInt->endNetwork();
|
CPlayerInterface::battleInt->endNetwork();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user