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:
parent
bfd6ee2b09
commit
1d494f049d
@ -22,6 +22,7 @@ ExecuteHeroChain::ExecuteHeroChain(const AIPath & path, const CGObjectInstance *
|
||||
{
|
||||
hero = path.targetHero;
|
||||
tile = path.targetTile();
|
||||
closestWayRatio = 1;
|
||||
|
||||
if(obj)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user