Sdk/World: Fix destruction retrieval while world clear

This commit is contained in:
Jérôme Leclercq
2017-11-22 10:26:33 +01:00
parent 19724f1e66
commit b83a9b60e7
4 changed files with 11 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ namespace Ndk
Entity::~Entity()
{
if (m_world)
if (m_world && m_valid)
Destroy();
}