SDK/EntityList: Fix movement
This commit is contained in:
@@ -180,6 +180,12 @@ namespace Ndk
|
|||||||
|
|
||||||
inline EntityList& EntityList::operator=(EntityList&& entityList) noexcept
|
inline EntityList& EntityList::operator=(EntityList&& entityList) noexcept
|
||||||
{
|
{
|
||||||
|
if (this == &entityList)
|
||||||
|
return *this;
|
||||||
|
|
||||||
|
for (const Ndk::EntityHandle& entity : *this)
|
||||||
|
entity->UnregisterEntityList(this);
|
||||||
|
|
||||||
m_entityBits = std::move(entityList.m_entityBits);
|
m_entityBits = std::move(entityList.m_entityBits);
|
||||||
m_world = entityList.m_world;
|
m_world = entityList.m_world;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user