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

Fix crashes on game start, gamestate now derives from GameCallbackHolder

This commit is contained in:
Ivan Savenko
2025-04-01 15:59:08 +03:00
parent d34b47bb20
commit d1d2cf4189
21 changed files with 99 additions and 81 deletions

View File

@@ -684,7 +684,7 @@ bool CGameStateCampaign::playerHasStartingHero(PlayerColor playerColor) const
std::unique_ptr<CMap> CGameStateCampaign::getCurrentMap()
{
return gameState->scenarioOps->campState->getMap(CampaignScenarioID::NONE, gameState->callback);
return gameState->scenarioOps->campState->getMap(CampaignScenarioID::NONE, gameState->cb);
}
VCMI_LIB_NAMESPACE_END