ecs: fix query.get::<T>() access

This commit is contained in:
Carter Anderson 2020-07-21 22:00:55 -07:00
parent a6953049fb
commit ae30175e18

View file

@ -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