Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Remove duplicate lookups from Resource initialization #7174

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
use correct non_send method
  • Loading branch information
joseph-gio committed Jan 12, 2023
commit e6c95262adc1f8f4f05f5917719eefce2e5a03c3
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ impl World {
OwningPtr::make(value, |ptr| {
// SAFETY: component_id was just initialized and corresponds to resource of type R
unsafe {
self.insert_resource_by_id(component_id, ptr);
self.insert_non_send_by_id(component_id, ptr);
}
});
}
Expand Down