SDK/Entity: Fix destruction
Former-commit-id: 0a18c2567dbd07f5a9042eccf4185357c791a158
This commit is contained in:
parent
9c1441cc82
commit
8827ee8ff2
|
|
@ -119,8 +119,6 @@ namespace Ndk
|
||||||
|
|
||||||
void Entity::Destroy()
|
void Entity::Destroy()
|
||||||
{
|
{
|
||||||
m_valid = false;
|
|
||||||
|
|
||||||
// On informe chaque système
|
// On informe chaque système
|
||||||
for (SystemIndex index = m_systemBits.FindFirst(); index != m_systemBits.npos; index = m_systemBits.FindNext(index))
|
for (SystemIndex index = m_systemBits.FindFirst(); index != m_systemBits.npos; index = m_systemBits.FindNext(index))
|
||||||
{
|
{
|
||||||
|
|
@ -137,5 +135,7 @@ namespace Ndk
|
||||||
handle->OnEntityDestroyed();
|
handle->OnEntityDestroyed();
|
||||||
|
|
||||||
m_handles.clear();
|
m_handles.clear();
|
||||||
|
|
||||||
|
m_valid = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue