mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Prefer to pass CGameState as reference instead of pointer
This commit is contained in:
@@ -294,7 +294,7 @@ bool CVCMIServer::prepareToStartGame()
|
||||
void CVCMIServer::startGameImmediately()
|
||||
{
|
||||
for(auto activeConnection : activeConnections)
|
||||
activeConnection->enterGameplayConnectionMode(gh->gs.get());
|
||||
activeConnection->enterGameplayConnectionMode(*gh->gs);
|
||||
|
||||
gh->start(si->mode == EStartMode::LOAD_GAME);
|
||||
setState(EServerState::GAMEPLAY);
|
||||
|
||||
Reference in New Issue
Block a user