Skip to content

Commit 0f1c7c8

Browse files
committed
cli
1 parent f9f59b8 commit 0f1c7c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/bevy_ecs/src/query/state.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,9 +1773,8 @@ impl<D: QueryData + 'static, F: QueryFilter + 'static> QueryState<D, F> {
17731773
) -> Option<&'w mut QueryState<D, F>> {
17741774
w.storages()
17751775
.sparse_sets
1776-
.get(cached.1)
1777-
.map(|s| s.get(cached.0))
1778-
.flatten()
1776+
.get(cached.1)?
1777+
.get(cached.0)
17791778
.map(|ptr| {
17801779
ptr.assert_unique()
17811780
.deref_mut::<InternalQueryState<D, F>>()

0 commit comments

Comments
 (0)