Răsfoiți Sursa

Hopefully fixed ALL the cases when hero could use invalid path, for good.

DjWarmonger 12 ani în urmă
părinte
comite
1b04f4fa9f
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      AI/VCAI/VCAI.cpp

+ 1 - 0
AI/VCAI/VCAI.cpp

@@ -1453,6 +1453,7 @@ bool VCAI::isAccessibleForHero(const int3 & pos, HeroPtr h, bool includeAllies /
 
 bool VCAI::moveHeroToTile(int3 dst, HeroPtr h)
 {
+	cb->setSelection(h.h); //make sure we are using the RIGHT pathfinder
 	logAi->debugStream() << boost::format("Moving hero %s to tile %s") % h->name % dst;
 	int3 startHpos = h->visitablePos();
 	bool ret = false;