瀏覽代碼

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)
 	{