Browse Source

group: minor changes

Michele Caini 3 years ago
parent
commit
65561fe431
1 changed files with 2 additions and 2 deletions
  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>>();
     }
 
     /**