- fix ragdoll listeners being looped when no listener list exists

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8143 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 428f0a7627
commit 93326d1285
  1. 2
      engine/src/jbullet/com/jme3/bullet/control/KinematicRagdollControl.java

@ -660,7 +660,7 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision
}
//dispatching the event if the ragdoll has been hit
if (hit) {
if (hit && listeners != null) {
for (RagdollCollisionListener listener : listeners) {
listener.collide(hitBone, hitObject, event);
}

Loading…
Cancel
Save