diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 8edd5aaaf..ff42863de 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -99,7 +99,7 @@ public: } [[nodiscard]] constexpr reference operator*() const noexcept { - return {it->first, *it->second}; + return operator[](0); } [[nodiscard]] constexpr pointer operator->() const noexcept {