diff --git a/client/CCastleInterface.cpp b/client/CCastleInterface.cpp index d76f786ad..08a4bcb42 100644 --- a/client/CCastleInterface.cpp +++ b/client/CCastleInterface.cpp @@ -825,8 +825,9 @@ void CCastleBuildings::enterTownHall() if(!vstd::contains(town->forbiddenBuildings, BuildingID::GRAIL)) { LOCPLINT->showYesNoDialog(CGI->generaltexth->allTexts[597], //Do you wish this to be the permanent home of the Grail? - boost::bind(&CCallback::buildBuilding, LOCPLINT->cb, town, BuildingID::GRAIL), - boost::bind(&CCastleBuildings::openTownHall, this), true); + [&]{ LOCPLINT->cb->buildBuilding(town, BuildingID::GRAIL); }, + [&]{ openTownHall(); }, + true); } else { diff --git a/client/battle/CBattleInterface.cpp b/client/battle/CBattleInterface.cpp index c3a7f2540..df372abc4 100644 --- a/client/battle/CBattleInterface.cpp +++ b/client/battle/CBattleInterface.cpp @@ -117,7 +117,7 @@ CBattleInterface::CBattleInterface(const CCreatureSet * army1, const CCreatureSe else if(defenderInt && defenderInt->cb->battleGetTacticDist()) tacticianInterface = defenderInt; - tacticsMode = tacticianInterface; //if we found interface of player with tactics, then enter tactics mode + tacticsMode = static_cast(tacticianInterface); //if we found interface of player with tactics, then enter tactics mode //create stack queue bool embedQueue = screen->h < 700; diff --git a/lib/CGameInterface.cpp b/lib/CGameInterface.cpp index 4f48b1961..9e2b441c2 100644 --- a/lib/CGameInterface.cpp +++ b/lib/CGameInterface.cpp @@ -217,7 +217,7 @@ void CAdventureAI::saveGame(COSer &h, const int version) /*saving */ { LOG_TRACE_PARAMS(logAi, "version '%i'", version); CGlobalAI::saveGame(h, version); - bool hasBattleAI = battleAI; + bool hasBattleAI = static_cast(battleAI); h << hasBattleAI; if(hasBattleAI) {