1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fixed single map victory crash

This commit is contained in:
Dydzio
2019-03-29 22:01:51 +01:00
parent ec536e613c
commit 97869fc36f
4 changed files with 10 additions and 2 deletions

View File

@ -495,6 +495,7 @@ void CServerHandler::endGameplay(bool closeConnection, bool restart)
{
if(CMM)
{
GH.terminate_cond->setn(false);
GH.curInt = CMM.get();
CMM->enable();
}
@ -644,6 +645,7 @@ void CServerHandler::threadHandleConnection()
logNetwork->error(e.what());
if(client)
{
state = EClientState::DISCONNECTING;
CGuiHandler::pushSDLEvent(SDL_USEREVENT, EUserEvent::RETURN_TO_MAIN_MENU);
}
else