瀏覽代碼

Attempt to fix weird crash on game start

Ivan Savenko 1 年之前
父節點
當前提交
46f2b8b2d7
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      client/CServerHandler.cpp

+ 0 - 7
client/CServerHandler.cpp

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