Skip to content

Commit

Permalink
Further is ref fix (#40)
Browse files Browse the repository at this point in the history
* Fix is_any_array_a_ref

* Further fix
  • Loading branch information
james-j-obrien authored Apr 9, 2024
1 parent 9a9a856 commit f8d9dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flecs_ecs/src/core/iterable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ macro_rules! impl_iterable {
components[index as usize] =
unsafe { ecs_field::<$t::OnlyType>(it, index + 1) as *mut u8 };
is_ref[index as usize] = if !it.sources.is_null() {
unsafe { *it.sources.add(0) != 0 }
unsafe { *it.sources.add(index as usize) != 0 }
} else {
false
};
Expand Down

0 comments on commit f8d9dd8

Please sign in to comment.