Skip to content

Commit cf278f9

Browse files
Suficiojames7132
andauthored
Update crates/bevy_ecs/src/world/entity_ref.rs
Co-authored-by: James Liu <contact@jamessliu.com>
1 parent 504aec9 commit cf278f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_ecs/src/world/entity_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ unsafe fn insert_dynamic_bundle<
773773
};
774774

775775
// SAFETY: location matches current entity.
776-
bundle_inserter.insert(entity, location, bundle)
776+
unsafe { bundle_inserter.insert(entity, location, bundle) }
777777
}
778778

779779
/// Removes a bundle from the given archetype and returns the resulting archetype (or None if the

0 commit comments

Comments
 (0)