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

+ 1 - 1
CMakeLists.txt

@@ -16,7 +16,7 @@ endif()
 # Project configuration
 #
 
-project(entt VERSION 2.6.1)
+project(entt VERSION 2.7.1)
 
 include(GNUInstallDirs)
 

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

@@ -1675,7 +1675,7 @@ class RuntimeView {
         : pools{std::move(others)}
     {
         const auto it = std::min_element(pools.begin(), pools.end(), [](const auto *lhs, const auto *rhs) {
-            return !lhs || (rhs && (lhs->size() < rhs->size()));
+            return (!lhs && rhs) || (lhs && rhs && lhs->size() < rhs->size());
         });
 
         // brings the best candidate (if any) on front of the vector