mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fix build
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user