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