Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Aug 26, 2019
1 parent 8325f5b commit b4c30fc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/entt/entity/runtime_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ class basic_runtime_view {
}

bool valid() const ENTT_NOEXCEPT {
const auto entt = *begin;
const auto sz = size_type(to_integer(entt) & traits_type::entity_mask);

return std::all_of(from, to, [entt](const auto *view) {
return std::all_of(from, to, [entt = *begin](const auto *view) {
return view->has(entt);
});
}
Expand Down

0 comments on commit b4c30fc

Please sign in to comment.