Michele Caini 4 лет назад
Родитель
Сommit
65561fe431
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/entt/entity/group.hpp

+ 2 - 2
src/entt/entity/group.hpp

@@ -172,7 +172,7 @@ public:
      */
     template<typename Type>
     [[nodiscard]] decltype(auto) storage() const noexcept {
-        return *std::get<index_of<Type>>(pools);
+        return storage<index_of<Type>>();
     }
 
     /**
@@ -560,7 +560,7 @@ public:
      */
     template<typename Type>
     [[nodiscard]] decltype(auto) storage() const noexcept {
-        return *std::get<index_of<Type>>(pools);
+        return storage<index_of<Type>>();
     }
 
     /**