Преглед изворни кода

CPathfinder::initializePatrol: don't pass valid PlayerColor

It's break getTilesInRange with mode 0 and we don't really need to check visibility anyway.
ArseniyShestakov пре 10 година
родитељ
комит
82ce58eceb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/CPathfinder.cpp

+ 1 - 1
lib/CPathfinder.cpp

@@ -596,7 +596,7 @@ void CPathfinder::initializePatrol()
 		if(hero->patrol.patrolRadious)
 		{
 			state = PATROL_RADIUS;
-			gs->getTilesInRange(patrolTiles, hero->patrol.initialPos, hero->patrol.patrolRadious, hero->tempOwner, 0, true);
+			gs->getTilesInRange(patrolTiles, hero->patrol.initialPos, hero->patrol.patrolRadious, boost::optional<PlayerColor>(), 0, true);
 		}
 		else
 			state = PATROL_LOCKED;