Skip to content

Commit

Permalink
fix: runtime view (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jul 2, 2018
1 parent 10a7c54 commit ddc0a32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif()
# Project configuration
#

project(entt VERSION 2.6.1)
project(entt VERSION 2.7.1)

include(GNUInstallDirs)

Expand Down
2 changes: 1 addition & 1 deletion src/entt/entity/view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ddc0a32

Please sign in to comment.