From 1d494f049d1633eaa99ba0c2d30f3789f3c313b4 Mon Sep 17 00:00:00 2001 From: Xilmi Date: Sat, 24 Aug 2024 14:54:00 +0200 Subject: [PATCH] Fix closest way ratio not initialized for ExecuteHeroChain Fix closest way ratio not initialized for ExecuteHeroChain --- AI/Nullkiller/Goals/ExecuteHeroChain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/AI/Nullkiller/Goals/ExecuteHeroChain.cpp b/AI/Nullkiller/Goals/ExecuteHeroChain.cpp index 8fe4851b2..566427f4d 100644 --- a/AI/Nullkiller/Goals/ExecuteHeroChain.cpp +++ b/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) {