Переглянути джерело

view: improved validity check

Michele Caini 2 роки тому
батько
коміт
9732092c0f
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/entt/entity/view.hpp

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

@@ -468,7 +468,7 @@ public:
      * @return True if the view is fully initialized, false otherwise.
      * @return True if the view is fully initialized, false otherwise.
      */
      */
     [[nodiscard]] explicit operator bool() const noexcept {
     [[nodiscard]] explicit operator bool() const noexcept {
-        return std::apply([](const auto *...curr) { return ((curr != nullptr) && ...); }, pools) && internal::fully_initialized(filter.data(), filter.size());
+        return (view != nullptr) && internal::fully_initialized(filter.data(), filter.size());
     }
     }
 
 
     /**
     /**