1
0
Michele Caini 7 жил өмнө
parent
commit
54129cecc2

+ 1 - 1
src/entt/entity/registry.hpp

@@ -1319,7 +1319,7 @@ public:
         other.pools.resize(pools.size());
         other.sighs.resize(pools.size());
 
-        if(sizeof...(Component)) {
+        if constexpr(sizeof...(Component)) {
             static_assert(std::conjunction_v<std::is_copy_constructible<Component>...>);
             ((other.pools[type<Component>()] = assure<Component>().clone()), ...);
             assert((other.pools[type<Component>()] && ...));