1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Gamestate is now passed as shared pointer

This commit is contained in:
Ivan Savenko
2025-03-20 18:07:08 +00:00
parent cd7732456a
commit 6d65641a43
27 changed files with 239 additions and 277 deletions

View File

@ -606,7 +606,7 @@ void CServerHandler::startMapAfterConnection(std::shared_ptr<CMapInfo> to)
mapToStart = to;
}
void CServerHandler::startGameplay(VCMI_LIB_WRAP_NAMESPACE(CGameState) * gameState)
void CServerHandler::startGameplay(std::shared_ptr<CGameState> gameState)
{
if(GAME->mainmenu())
GAME->mainmenu()->disable();