From e699941a39fe20d7eeda38d40a4ca41ad29a446c Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Wed, 12 Jun 2024 18:17:23 +0000 Subject: [PATCH] Disable logic that seems to be leading to thread races --- AI/Nullkiller/Pathfinding/AINodeStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/Nullkiller/Pathfinding/AINodeStorage.cpp b/AI/Nullkiller/Pathfinding/AINodeStorage.cpp index 93f49dbf5..aaeecbc44 100644 --- a/AI/Nullkiller/Pathfinding/AINodeStorage.cpp +++ b/AI/Nullkiller/Pathfinding/AINodeStorage.cpp @@ -1203,7 +1203,7 @@ void AINodeStorage::calculateTownPortalTeleportations(std::vector std::vector actorsVector(actorsOfInitial.begin(), actorsOfInitial.end()); tbb::concurrent_vector output; - if(actorsVector.size() * initialNodes.size() > 1000) + if(false) //if (actorsVector.size() * initialNodes.size() > 1000) { tbb::parallel_for(tbb::blocked_range(0, actorsVector.size()), [&](const tbb::blocked_range & r) {