Fixed NPE in KinematicRagdollControl when removing the ragdoll from the scene (thanks Teique)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7538 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
c9a5e0953a
commit
5491f0b749
@ -586,9 +586,9 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision
|
|||||||
}
|
}
|
||||||
this.space = space;
|
this.space = space;
|
||||||
addToPhysicsSpace();
|
addToPhysicsSpace();
|
||||||
}
|
|
||||||
this.space.addCollisionListener(this);
|
this.space.addCollisionListener(this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* returns the physic space
|
* returns the physic space
|
||||||
|
Loading…
x
Reference in New Issue
Block a user