1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Fix build

This commit is contained in:
Ivan Savenko
2025-03-08 16:11:59 +00:00
parent 62cb5412ff
commit 99c6ca7e70
2 changed files with 3 additions and 3 deletions

View File

@@ -421,7 +421,7 @@ void CGameHandler::changeSecSkill(const CGHeroInstance * hero, SecondarySkill wh
void CGameHandler::handleClientDisconnection(std::shared_ptr<CConnection> c)
{
if(gameLobby().getState() == EServerState::SHUTDOWN || !gs || !gs->scenarioOps)
if(gameLobby().getState() == EServerState::SHUTDOWN || !gs || !gs->getStartInfo())
{
assert(0); // game should have shut down before reaching this point!
return;
@@ -430,7 +430,7 @@ void CGameHandler::handleClientDisconnection(std::shared_ptr<CConnection> c)
for(auto & playerConnections : connections)
{
PlayerColor playerId = playerConnections.first;
auto * playerSettings = gs->scenarioOps->getPlayersSettings(playerId.getNum());
auto * playerSettings = gs->getStartInfo()->getPlayersSettings(playerId.getNum());
if(!playerSettings)
continue;