Skip to content

Commit 80c2017

Browse files
anchpopNathanSWard
andauthored
Update crates/bevy_ecs/src/system/system_param.rs
Co-authored-by: Nathan Ward <43621845+NathanSWard@users.noreply.github.com>
1 parent 175e158 commit 80c2017

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/bevy_ecs/src/system/system_param.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ impl<'w, T: Component> AsRef<T> for ResMut<'w, T> {
381381

382382
impl<'w, T: Component> AsMut<T> for ResMut<'w, T> {
383383
fn as_mut(&mut self) -> &mut T {
384+
self.ticks.set_changed(self.change_tick);
384385
&mut *self
385386
}
386387
}

0 commit comments

Comments
 (0)