소스 검색

fix: runtime view (#108)

Michele Caini 7 년 전
부모
커밋
ddc0a32bbc
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      CMakeLists.txt
  2. 1 1
      src/entt/entity/view.hpp

+ 1 - 1
CMakeLists.txt

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

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

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