bevy/crates/bevy_ecs/src/relationship
databasedav 95470df3c8
fix .insert_related index bound (#19134)
# Objective

resolves #19092

## Solution

- remove the `.saturating_sub` from the index transformation
- add `.saturating_add` to the internal offset calculation

## Testing

- added regression test, confirming 0 index order + testing max bound
2025-05-09 17:10:54 +00:00
..
mod.rs Finish #17558, re-adding insert_children (#18409) 2025-04-01 02:21:09 +00:00
related_methods.rs fix .insert_related index bound (#19134) 2025-05-09 17:10:54 +00:00
relationship_query.rs Move Item and fetch to QueryData from WorldQuery (#17679) 2025-02-05 18:46:18 +00:00
relationship_source_collection.rs fix .insert_related index bound (#19134) 2025-05-09 17:10:54 +00:00