mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Attempt to fix weird crash on game start
This commit is contained in:
parent
31401e219f
commit
46f2b8b2d7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user