Forráskód Böngészése

Fix closest way ratio not initialized for ExecuteHeroChain

Fix closest way ratio not initialized for ExecuteHeroChain
Xilmi 1 éve
szülő
commit
1d494f049d
1 módosított fájl, 1 hozzáadás és 0 törlés
  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)
 	{