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) {