Browse Source

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 năm trước cách đây
mục cha
commit
82ce58eceb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;