BGE: Fix delete constraint for replicated physics controllers.
Replicated controllers didn't free constraints list before.
This commit is contained in:
parent
d22153425a
commit
b36c6b9c47
|
@ -820,6 +820,9 @@ void CcdPhysicsController::PostProcessReplica(class PHY_IMotionState* motionsta
|
|||
m_registerCount = 0;
|
||||
m_collisionShape = NULL;
|
||||
|
||||
// Clear all old constraints.
|
||||
m_ccdConstraintRefs.clear();
|
||||
|
||||
// always create a new shape to avoid scaling bug
|
||||
if (m_shapeInfo)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue