From 28b77e0b793ef51d6461312ff318ac7ae10b372b Mon Sep 17 00:00:00 2001 From: Andrii Danylchenko Date: Sat, 15 May 2021 22:03:47 +0300 Subject: [PATCH] Nullkiller: rename fuzzy logic to .txt --- AI/Nullkiller/Engine/PriorityEvaluator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/Nullkiller/Engine/PriorityEvaluator.cpp b/AI/Nullkiller/Engine/PriorityEvaluator.cpp index e0f977efd..956c9a22f 100644 --- a/AI/Nullkiller/Engine/PriorityEvaluator.cpp +++ b/AI/Nullkiller/Engine/PriorityEvaluator.cpp @@ -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");