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

Nullkiller: rename fuzzy logic to .txt

This commit is contained in:
Andrii Danylchenko 2021-05-15 22:03:47 +03:00 committed by Andrii Danylchenko
parent e3c87fb58d
commit 28b77e0b79

View File

@ -46,7 +46,7 @@ PriorityEvaluator::~PriorityEvaluator()
void PriorityEvaluator::initVisitTile()
{
auto file = CResourceHandler::get("initial")->load(ResourceID("config/ai-priorities.txt"))->readAll();
auto file = CResourceHandler::get()->load(ResourceID("config/ai-priorities.txt"))->readAll();
std::string str = std::string((char *)file.first.get(), file.second);
engine = fl::FllImporter().fromString(str);
armyLossPersentageVariable = engine->getInputVariable("armyLoss");