SDK/EntityList: Fix movement
This commit is contained in:
parent
242e154f09
commit
464419db73
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue