(Entity) Fixed handles not being cleared after destruction

Also updated some comments


Former-commit-id: 86b23fca0806c637fbe007df4c7edfb52b95f8e1
This commit is contained in:
Lynix
2015-02-24 16:15:17 +01:00
parent 6201183572
commit ba127ef7b2
2 changed files with 4 additions and 2 deletions

View File

@@ -48,5 +48,7 @@ namespace Ndk
// On informe chaque handle de notre destruction pour éviter qu'il ne continue de pointer sur nous
for (EntityHandle* handle : m_handles)
handle->OnEntityDestroyed();
m_handles.clear();
}
}