Răsfoiți Sursa

group: minor changes

Michele Caini 4 ani în urmă
părinte
comite
65561fe431
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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>>();
     }
 
     /**