Browse Source

Minor fixes

Dydzio 7 năm trước cách đây
mục cha
commit
ff2ac5b34b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      AI/VCAI/VCAI.cpp

+ 1 - 1
AI/VCAI/VCAI.cpp

@@ -1322,7 +1322,6 @@ bool VCAI::canRecruitAnyHero(const CGTownInstance * t) const
 
 
 void VCAI::wander(HeroPtr h)
 void VCAI::wander(HeroPtr h)
 {
 {
-
 	auto visitTownIfAny = [this](HeroPtr h) -> bool
 	auto visitTownIfAny = [this](HeroPtr h) -> bool
 	{
 	{
 		if (h->visitedTown)
 		if (h->visitedTown)
@@ -1331,6 +1330,7 @@ void VCAI::wander(HeroPtr h)
 			buildArmyIn(h->visitedTown);
 			buildArmyIn(h->visitedTown);
 			return true;
 			return true;
 		}
 		}
+		return false;
 	};
 	};
 
 
 	//unclaim objects that are now dangerous for us
 	//unclaim objects that are now dangerous for us