Skip to content

Commit

Permalink
entity_range is sorted on the first entity
Browse files Browse the repository at this point in the history
  • Loading branch information
kgorking committed Mar 17, 2024
1 parent a820302 commit ff427b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ecs/entity_range.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,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

0 comments on commit ff427b5

Please sign in to comment.