- 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
This commit is contained in:
nor..67 2011-09-01 00:51:35 +00:00
parent 428f0a7627
commit 93326d1285

View File

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