1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00

Fix closest way ratio not initialized for ExecuteHeroChain

Fix closest way ratio not initialized for ExecuteHeroChain
This commit is contained in:
Xilmi 2024-08-24 14:54:00 +02:00
parent bfd6ee2b09
commit 1d494f049d

View File

@ -22,6 +22,7 @@ ExecuteHeroChain::ExecuteHeroChain(const AIPath & path, const CGObjectInstance *
{
hero = path.targetHero;
tile = path.targetTile();
closestWayRatio = 1;
if(obj)
{