Physics2D/RigidBody2D: Fix removal of body from space
This commit is contained in:
parent
c1630cdbff
commit
23a85fb5ab
|
|
@ -270,6 +270,9 @@ namespace Nz
|
|||
cpShapeFree(shape);
|
||||
|
||||
if (m_handle)
|
||||
{
|
||||
cpSpaceRemoveBody(m_world->GetHandle(), m_handle);
|
||||
cpBodyFree(m_handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue