Sdk/World: Fix movement not taking waiting entities into account

This commit is contained in:
Jérôme Leclercq 2017-11-08 13:14:00 +01:00
parent 2ed9691c80
commit a8651846ae
1 changed files with 4 additions and 1 deletions

View File

@ -306,12 +306,15 @@ namespace Ndk
m_killedEntities = std::move(world.m_killedEntities);
m_orderedSystems = std::move(world.m_orderedSystems);
m_orderedSystemsUpdated = world.m_orderedSystemsUpdated;
m_waitingEntities = std::move(world.m_waitingEntities);
m_entities = std::move(world.m_entities);
for (EntityBlock& block : m_entities)
block.entity.SetWorld(this);
m_waitingEntities = std::move(world.m_waitingEntities);
for (auto& blockPtr : m_waitingEntities)
blockPtr->entity.SetWorld(this);
m_systems = std::move(world.m_systems);
for (const auto& systemPtr : m_systems)
if (systemPtr)