1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-30 23:18:08 +02:00

Attempt to fix weird crash on game start

This commit is contained in:
Ivan Savenko 2024-05-10 18:31:49 +00:00
parent 31401e219f
commit 46f2b8b2d7

View File

@ -612,13 +612,6 @@ void CServerHandler::sendStartGame(bool allowOnlyAI) const
sendLobbyPack(lpsg);
LobbyStartGame lsg;
if(client)
{
lsg.initializedStartInfo = std::make_shared<StartInfo>(* const_cast<StartInfo *>(client->getStartInfo(true)));
lsg.initializedStartInfo->mode = EStartMode::NEW_GAME;
lsg.initializedStartInfo->seedToBeUsed = lsg.initializedStartInfo->seedPostInit = 0;
* si = * lsg.initializedStartInfo;
}
sendLobbyPack(lsg);
}