diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index 43b3c6c1e..26d7be69c 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -144,8 +144,7 @@ public: template group_handler(std::tuple ogpool, std::tuple epool) : pools{std::apply([](auto &&...cpool) { return std::array{&cpool...}; }, ogpool)}, - filter{std::apply([](auto &&...cpool) { return std::array{&cpool...}; }, epool)}, - len{} { + filter{std::apply([](auto &&...cpool) { return std::array{&cpool...}; }, epool)} { std::apply([this](auto &...cpool) { ((cpool.on_construct().template connect<&group_handler::push_on_construct>(*this), cpool.on_destroy().template connect<&group_handler::remove_if>(*this)), ...); }, ogpool); std::apply([this](auto &...cpool) { ((cpool.on_construct().template connect<&group_handler::remove_if>(*this), cpool.on_destroy().template connect<&group_handler::push_on_destroy>(*this)), ...); }, epool); common_setup(); @@ -179,7 +178,7 @@ public: private: std::array pools; std::array filter; - std::size_t len; + std::size_t len{}; }; template