I recently converted an enableable component to be an enableable buffer, and now this foreach creates an exception during world instantiation.
foreach (var (parentBuffer, parentEnabledRef, entity) in SystemAPI
.Query<DynamicBuffer<ParentBuffer>, EnabledRefRO<ParentBuffer>>()
.WithAll<PredictedGhost, Simulate, IsEnabled>()
.WithPresent<ParentBuffer>()
.WithEntityAccess())
Removing the WithPresent<ParentBuffer>() removes the exception, but now the foreach doesn't affect entities with the buffer disabled.
ECS 1.4.0-exp.2.
@austere trellis?