1
0
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:
DJWarmonger 2018-08-21 08:40:47 +02:00
parent 35d2af2e7d
commit a44c792b7c

View File

@ -90,8 +90,8 @@ 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);