1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Workaround for very slow boat summon tests

This commit is contained in:
Ivan Savenko 2024-07-04 19:56:01 +00:00
parent ad972eb7e2
commit b5c36958a9

View File

@ -141,7 +141,8 @@ namespace AIPathfinding
{
SpellID summonBoat = SpellID::SUMMON_BOAT;
return hero->getSpellCost(summonBoat.toSpell());
// FIXME: this should be hero->getSpellCost, however currently queries to bonus system are too slow
return summonBoat.toSpell()->getCost(0);
}
}