Skip to content

Commit

Permalink
fix: assert on cache relation record
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Jul 16, 2024
1 parent 4fe2211 commit 66b9eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/archetypes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ impl ArchetypeIndex {
relation_count: 0,
});

assert_eq!(records.cell_index + records.relation_count, cell_index);
records.relation_count += 1;
assert_eq!(records.cell_index + records.relation_count, cell_index + 1);
}

fn unregister_relation(&mut self, arch_id: ArchetypeId, key: ComponentKey) {
Expand Down

0 comments on commit 66b9eb5

Please sign in to comment.