Michele Caini 2 лет назад
Родитель
Сommit
04460d336e
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/entt/container/dense_set.hpp
  2. 1 1
      src/entt/container/table.hpp

+ 1 - 1
src/entt/container/dense_set.hpp

@@ -89,7 +89,7 @@ public:
     }
 
     [[nodiscard]] constexpr reference operator*() const noexcept {
-        return *operator->();
+        return operator[](0);
     }
 
     template<typename Lhs, typename Rhs>

+ 1 - 1
src/entt/container/table.hpp

@@ -82,7 +82,7 @@ public:
     }
 
     [[nodiscard]] constexpr reference operator*() const noexcept {
-        return *operator->();
+        return operator[](0);
     }
 
     template<typename... Lhs, typename... Rhs>