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

Fix closest way ratio not initialized for ExecuteHeroChain

Fix closest way ratio not initialized for ExecuteHeroChain
Xilmi пре 1 година
родитељ
комит
1d494f049d
1 измењених фајлова са 1 додато и 0 уклоњено
  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)
 	{