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:
parent
ad972eb7e2
commit
b5c36958a9
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user