Skip to content

Commit

Permalink
Merge branch 'new_allocator_component_pool' of https://github.com/kgo…
Browse files Browse the repository at this point in the history
…rking/ecs into new_allocator_component_pool
  • Loading branch information
kgorking committed Mar 17, 2024
2 parents 3191195 + 8ba7b0f commit 8bddd63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/ecs/ecs.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ public:
}

[[nodiscard]] constexpr bool operator<(entity_id const& id) const {
return last_ < id;
return first_ < id;
}

// Returns the first entity in the range
Expand Down Expand Up @@ -1696,6 +1696,7 @@ public:




#ifdef _MSC_VER
#define MSVC msvc::
#else
Expand Down
3 changes: 2 additions & 1 deletion include/ecs/ecs_sh.h
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ ECS_EXPORT class entity_range final {
}

[[nodiscard]] constexpr bool operator<(entity_id const& id) const {
return last_ < id;
return first_ < id;
}

// Returns the first entity in the range
Expand Down Expand Up @@ -1697,6 +1697,7 @@ class component_pool_base {




#ifdef _MSC_VER
#define MSVC msvc::
#else
Expand Down

0 comments on commit 8bddd63

Please sign in to comment.