1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +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

@@ -294,7 +294,7 @@ bool CVCMIServer::prepareToStartGame()
void CVCMIServer::startGameImmediately()
{
for(auto activeConnection : activeConnections)
activeConnection->enterGameplayConnectionMode(gh->gs);
activeConnection->enterGameplayConnectionMode(gh->gs.get());
gh->start(si->mode == EStartMode::LOAD_GAME);
setState(EServerState::GAMEPLAY);