1
0
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:
Ivan Savenko 2024-05-20 10:57:25 +00:00
parent 6f6555d19c
commit d6ff7896fe

View File

@ -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();