From 322bd0c382fef393ab166f748dc9b28811a305d9 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Thu, 25 Jun 2015 15:03:42 +0100 Subject: [PATCH] Fix hardcoded plugin thread groups size. I set that for debugging, forgot to remove it. --- src/backend/game/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/game/game.cpp b/src/backend/game/game.cpp index df647f24..2ba29e01 100644 --- a/src/backend/game/game.cpp +++ b/src/backend/game/game.cpp @@ -144,7 +144,7 @@ namespace loot { unsigned int pluginsPerThread = ceil((double)plugins.size() / threadsToUse); BOOST_LOG_TRIVIAL(info) << "Loading " << plugins.size() << " plugins using " << threadsToUse << " threads, with up to " << pluginsPerThread << " plugins per thread."; - std::vector::iterator>> pluginGroups(4); + std::vector::iterator>> pluginGroups(threadsToUse); size_t pluginGroup = 0; for (auto it = plugins.begin(); it != plugins.end(); ++it) { if (pluginGroups[pluginGroup].size() == pluginsPerThread) {