1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

CPathfinder::initializePatrol: don't pass valid PlayerColor

It's break getTilesInRange with mode 0 and we don't really need to check visibility anyway.
This commit is contained in:
ArseniyShestakov
2015-12-05 01:45:10 +03:00
parent 82c4c2f859
commit 82ce58eceb

View File

@ -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;