Browse Source

runtime_view: correctly set the no_tombstone_check member

Michele Caini 4 năm trước cách đây
mục cha
commit
4e12853d4a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/entt/entity/runtime_view.hpp

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

@@ -79,7 +79,7 @@ class basic_runtime_view final {
             : pools{&cpools},
               filter{&ignore},
               it{curr},
-              no_tombstone_check{!((cpools.size() + ignore.size()) == 1u) || std::all_of(pools->cbegin(), pools->cend(), [](const basic_common_type *cpool) { return (cpool->policy() == deletion_policy::swap_and_pop); })}
+              no_tombstone_check{std::all_of(pools->cbegin(), pools->cend(), [](const basic_common_type *cpool) { return (cpool->policy() == deletion_policy::swap_and_pop); })}
         {
             if(it != (*pools)[0]->end() && !valid()) {
                 ++(*this);