1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

* small fix

This commit is contained in:
mateuszb 2013-02-11 16:07:29 +00:00
parent d540723739
commit 6ff7d61b91
2 changed files with 3 additions and 3 deletions

View File

@ -3282,7 +3282,7 @@ bool CPathfinder::goodForLandSeaTransition()
return true;
}
CPathfinder::CPathfinder(CPathsInfo &_out, CGameState *_gs, const CGHeroInstance *_hero) : CGameInfoCallback(_gs, -1), out(_out), hero(_hero), FoW(getPlayerTeam(hero->tempOwner)->fogOfWarMap)
CPathfinder::CPathfinder(CPathsInfo &_out, CGameState *_gs, const CGHeroInstance *_hero) : CGameInfoCallback(_gs, boost::optional<TPlayerColor>()), out(_out), hero(_hero), FoW(getPlayerTeam(hero->tempOwner)->fogOfWarMap)
{
useSubterraneanGates = true;
allowEmbarkAndDisembark = true;

View File

@ -711,9 +711,9 @@ std::vector < const CGTownInstance *> CPlayerSpecificInfoCallback::getTownsInfo(
{
//boost::shared_lock<boost::shared_mutex> lock(*gs->mx);
std::vector < const CGTownInstance *> ret = std::vector < const CGTownInstance *>();
BOOST_FOREACH(auto i, gs->players)
BOOST_FOREACH(const auto & i, gs->players)
{
BOOST_FOREACH(auto town, i.second.towns)
BOOST_FOREACH(const auto & town, i.second.towns)
{
if (i.first==player || (isVisible(town, player) && !onlyOur))
{