Skip to content

Commit

Permalink
storage: fix component_traits usage in storage_iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jul 3, 2024
1 parent b7090b1 commit 060590b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/entity/storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class storage_iterator final {

[[nodiscard]] constexpr reference operator[](const difference_type value) const noexcept {
const auto pos = index() - value;
constexpr auto page_size = component_traits<typename Container::value_type>::page_size;
constexpr auto page_size = component_traits<value_type>::page_size;
return (*payload)[pos / page_size][fast_mod(static_cast<std::size_t>(pos), page_size)];
}

Expand Down

0 comments on commit 060590b

Please sign in to comment.