Selaa lähdekoodia

Fix closest way ratio not initialized for ExecuteHeroChain

Fix closest way ratio not initialized for ExecuteHeroChain
Xilmi 1 vuosi sitten
vanhempi
sitoutus
1d494f049d
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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)
 	{