From e44b1e9024a341a8bc265ca98890a7d8cef3e1c0 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 24 Apr 2024 18:22:48 +0200 Subject: [PATCH] table: fixed table_iterator operator[](value) --- src/entt/entity/table.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/entity/table.hpp b/src/entt/entity/table.hpp index a9bf3ef73..5322aa27d 100644 --- a/src/entt/entity/table.hpp +++ b/src/entt/entity/table.hpp @@ -78,7 +78,7 @@ struct table_iterator { } [[nodiscard]] constexpr reference operator[](const difference_type value) const noexcept { - return std::forward_as_tuple(*std::get(it)...); + return std::forward_as_tuple(std::get(it)[value]...); } [[nodiscard]] constexpr pointer operator->() const noexcept {