Sdk/Entity: Fix problem when moving entities

This commit is contained in:
Jérôme Leclercq 2017-03-08 17:36:13 +01:00
parent 0818a2187b
commit 4ea43e0b0b
1 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@ namespace Ndk
m_enabled(entity.m_enabled),
m_valid(entity.m_valid)
{
entity.m_world = nullptr;
}
/*!
@ -53,6 +54,7 @@ namespace Ndk
Entity::~Entity()
{
if (m_world)
Destroy();
}