Physics2D/RigidBody2D: Fix removal of body from space

This commit is contained in:
Lynix 2016-11-15 16:01:39 +01:00
parent c1630cdbff
commit 23a85fb5ab
1 changed files with 3 additions and 0 deletions

View File

@ -270,6 +270,9 @@ namespace Nz
cpShapeFree(shape);
if (m_handle)
{
cpSpaceRemoveBody(m_world->GetHandle(), m_handle);
cpBodyFree(m_handle);
}
}
}