1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-14 02:33:51 +02:00

Merge pull request #548 from dydzio0614/GatherArmyLoop

Do not generate GatherArmy goal as result of GatherArmy decomposition
This commit is contained in:
Alexander Shishkin 2019-02-11 16:45:37 +03:00 committed by GitHub
commit ba803deb58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,13 +126,13 @@ TGoalVec GatherArmy::getAllPossibleSubgoals()
// Go to the other hero if we are faster
if(!vstd::contains(ai->visitedHeroes[hero], h))
{
vstd::concatenate(ret, ai->ah->howToVisitObj(hero, h));
vstd::concatenate(ret, ai->ah->howToVisitObj(hero, h, false));
}
// Go to the other hero if we are faster
if(!vstd::contains(ai->visitedHeroes[h], hero))
{
vstd::concatenate(ret, ai->ah->howToVisitObj(h, hero.get()));
vstd::concatenate(ret, ai->ah->howToVisitObj(h, hero.get(), false));
}
}