1
0
Эх сурвалжийг харах

runtime_view doesn't use sparse_set<...>::data() anymore

Michele Caini 6 жил өмнө
parent
commit
5fe5d4b6fc

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

@@ -242,7 +242,7 @@ public:
      */
     bool contains(const entity_type entt) const ENTT_NOEXCEPT {
         return valid() && std::all_of(pools.cbegin(), pools.cend(), [entt](const auto *view) {
-            return view->has(entt) && view->data()[view->get(entt)] == entt;
+            return view->find(entt) != view->end();
         });
     }