1
0
Michele Caini 3 жил өмнө
parent
commit
65561fe431

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

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