make the new entity_count
more precise
This commit is contained in:
parent
b543a4ac54
commit
10f11babc8
@ -224,7 +224,7 @@ impl World {
|
||||
/// This is helpful as a diagnostic, but it can also be used effectively in tests.
|
||||
#[inline]
|
||||
pub fn entity_count(&self) -> u32 {
|
||||
self.entities.len()
|
||||
self.entities.count_constructed()
|
||||
}
|
||||
|
||||
/// Retrieves this world's [`Archetypes`] collection.
|
||||
|
Loading…
Reference in New Issue
Block a user