mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +00:00
ecs: fix query.get::<T>() access
This commit is contained in:
parent
a6953049fb
commit
ae30175e18
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ impl<'a, Q: HecsQuery> Query<'a, Q> {
|
|||
if self
|
||||
.archetype_access
|
||||
.immutable
|
||||
.contains(location.archetype as usize) || self
|
||||
.archetype_access
|
||||
.mutable
|
||||
.contains(location.archetype as usize)
|
||||
{
|
||||
self.world
|
||||
|
|
Loading…
Add table
Reference in a new issue