Michele Caini 1 год назад
Родитель
Сommit
36896978b1
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/entt/entity/view.hpp

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

@@ -268,7 +268,9 @@ protected:
     [[nodiscard]] const Type *storage(const std::size_t pos) const noexcept {
         if(pos < Get) {
             return pools[pos];
-        } else if(const auto idx = pos - Get; filter[idx] != internal::view_placeholder<Type>()) {
+        }
+
+        if(const auto idx = pos - Get; filter[idx] != internal::view_placeholder<Type>()) {
             return filter[idx];
         }