BGE: Fix delete constraint for replicated physics controllers.

Replicated controllers didn't free constraints list before.
This commit is contained in:
Porteries Tristan 2015-08-11 21:48:06 +02:00
parent d22153425a
commit b36c6b9c47
1 changed files with 3 additions and 0 deletions

View File

@ -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)
{