SDK/Entity: Fix destruction

Former-commit-id: 045e771bc67f6141b4bd8d5a32d151fb09526857
This commit is contained in:
Lynix 2015-08-13 13:54:57 +02:00
parent 835da411c7
commit 6a2e0da88f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }
} }