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

fix checking if a tile is guarded

Andrii Danylchenko пре 3 година
родитељ
комит
742030bbc0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/CPathfinder.cpp

+ 1 - 1
lib/CPathfinder.cpp

@@ -901,7 +901,7 @@ CGPathNode::ENodeAction CPathfinder::getTeleportDestAction() const
 
 bool CPathfinder::isDestinationGuardian() const
 {
-	return gs->guardingCreaturePosition(source.node->coord) == destination.node->coord;
+	return gs->guardingCreaturePosition(destination.node->coord) == destination.node->coord;
 }
 
 void CPathfinderHelper::initializePatrol()