diff --git a/src/EC/Manager.hpp b/src/EC/Manager.hpp index 22d757f..bcb0537 100644 --- a/src/EC/Manager.hpp +++ b/src/EC/Manager.hpp @@ -102,7 +102,7 @@ namespace EC Manager() { resize(EC_INIT_ENTITIES_SIZE); - if(ThreadCount >= 2) { + if constexpr(ThreadCount >= 2) { threadPool = std::make_unique >(); } }