Core/ObjectHandle: Fix movement

Former-commit-id: 8fd32af2b58e8f0d2146232c23a8405e3e012349
This commit is contained in:
Lynix 2016-05-09 18:10:58 +02:00
parent 34bc2301a0
commit e8a4be2039
1 changed files with 2 additions and 1 deletions

View File

@ -81,8 +81,9 @@ namespace Nz
if (T* object = handle.GetObject())
{
object->UpdateHandle(&handle, this);
m_object = handle.m_object;
handle.m_object = nullptr;
object->UpdateHandle(&handle, this);
}
}