- 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:
parent
428f0a7627
commit
93326d1285
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user