Core/EnttWorld: Use in_use instead of free_list to get entity count
Since in_use seems to be deprecated
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Nz
|
|||||||
|
|
||||||
inline std::size_t EnttWorld::GetAliveEntityCount() const
|
inline std::size_t EnttWorld::GetAliveEntityCount() const
|
||||||
{
|
{
|
||||||
return m_registry.storage<entt::entity>()->in_use();
|
return m_registry.storage<entt::entity>()->free_list();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline entt::registry& EnttWorld::GetRegistry()
|
inline entt::registry& EnttWorld::GetRegistry()
|
||||||
|
|||||||
Reference in New Issue
Block a user