Skip to content

Commit

Permalink
registry: use the "right" allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jun 28, 2023
1 parent 0421394 commit 7fb47e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/entity/registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class basic_registry {
* @return The associated allocator.
*/
[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
return pools.get_allocator();
return entities.get_allocator();
}

/**
Expand Down

0 comments on commit 7fb47e5

Please sign in to comment.