mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Important fix for ClearWayTo in new branch.
This commit is contained in:
parent
35d2af2e7d
commit
a44c792b7c
@ -90,8 +90,8 @@ float FuzzyHelper::evaluate(Goals::GatherArmy & g)
|
||||
|
||||
float FuzzyHelper::evaluate(Goals::ClearWayTo & g)
|
||||
{
|
||||
if(!g.hero.h)
|
||||
throw cannotFulfillGoalException("ClearWayTo called without hero!");
|
||||
if (!g.hero.h)
|
||||
return 0; //lowest priority
|
||||
|
||||
int3 t = ai->getCachedSectorMap(g.hero)->firstTileToGet(g.hero, g.tile);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user