mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
Fix build
This commit is contained in:
@@ -37,7 +37,7 @@ struct DLL_LINKAGE CStructure
|
||||
bool hiddenUpgrade; // used only if "building" is upgrade, if true - structure on town screen will behave exactly like parent (mouse clicks, hover texts, etc)
|
||||
};
|
||||
|
||||
class DLL_LINKAGE CTown
|
||||
class DLL_LINKAGE CTown : boost::noncopyable
|
||||
{
|
||||
friend class CTownHandler;
|
||||
size_t namesCount = 0;
|
||||
|
@@ -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