mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Important fix for ClearWayTo in new branch.
This commit is contained in:
@ -91,7 +91,7 @@ float FuzzyHelper::evaluate(Goals::GatherArmy & g)
|
|||||||
float FuzzyHelper::evaluate(Goals::ClearWayTo & g)
|
float FuzzyHelper::evaluate(Goals::ClearWayTo & g)
|
||||||
{
|
{
|
||||||
if (!g.hero.h)
|
if (!g.hero.h)
|
||||||
throw cannotFulfillGoalException("ClearWayTo called without hero!");
|
return 0; //lowest priority
|
||||||
|
|
||||||
int3 t = ai->getCachedSectorMap(g.hero)->firstTileToGet(g.hero, g.tile);
|
int3 t = ai->getCachedSectorMap(g.hero)->firstTileToGet(g.hero, g.tile);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user