SDK/World: Fix waiting entities not being cleared on time

This commit is contained in:
Lynix 2017-05-15 10:11:42 +02:00
parent bb3eebb9cc
commit 7425993d2d
2 changed files with 2 additions and 1 deletions

View File

@ -119,6 +119,7 @@ namespace Ndk
// This is made to avoid that handle warn uselessly entities before their destruction // This is made to avoid that handle warn uselessly entities before their destruction
m_entities.clear(); m_entities.clear();
m_entityBlocks.clear(); m_entityBlocks.clear();
m_waitingEntities.clear();
m_aliveEntities.Clear(); m_aliveEntities.Clear();
m_dirtyEntities.Clear(); m_dirtyEntities.Clear();

View File

@ -11,7 +11,7 @@ SCENARIO("ListenerSystem", "[NDK][LISTENERSYSTEM]")
GIVEN("A world and an entity with listener & node components") GIVEN("A world and an entity with listener & node components")
{ {
Ndk::World world; Ndk::World world;
const Ndk::EntityHandle& entity = world.CreateEntity(); Ndk::EntityHandle entity = world.CreateEntity();
Ndk::ListenerComponent& listenerComponent = entity->AddComponent<Ndk::ListenerComponent>(); Ndk::ListenerComponent& listenerComponent = entity->AddComponent<Ndk::ListenerComponent>();
Ndk::NodeComponent& nodeComponent = entity->AddComponent<Ndk::NodeComponent>(); Ndk::NodeComponent& nodeComponent = entity->AddComponent<Ndk::NodeComponent>();