Explorar o código

Fix closest way ratio not initialized for ExecuteHeroChain

Fix closest way ratio not initialized for ExecuteHeroChain
Xilmi hai 1 ano
pai
achega
1d494f049d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      AI/Nullkiller/Goals/ExecuteHeroChain.cpp

+ 1 - 0
AI/Nullkiller/Goals/ExecuteHeroChain.cpp

@@ -22,6 +22,7 @@ ExecuteHeroChain::ExecuteHeroChain(const AIPath & path, const CGObjectInstance *
 {
 	hero = path.targetHero;
 	tile = path.targetTile();
+	closestWayRatio = 1;
 
 	if(obj)
 	{