diff --git a/engine/src/bullet/com/jme3/bullet/PhysicsSpace.java b/engine/src/bullet/com/jme3/bullet/PhysicsSpace.java index 77d3f76a8..35bd447a0 100644 --- a/engine/src/bullet/com/jme3/bullet/PhysicsSpace.java +++ b/engine/src/bullet/com/jme3/bullet/PhysicsSpace.java @@ -537,7 +537,7 @@ public class PhysicsSpace { List children = ((Node) spatial).getChildren(); for (Iterator it = children.iterator(); it.hasNext();) { Spatial spat = it.next(); - removeAll((Node) spat); + removeAll(spat); } } } diff --git a/engine/src/jbullet/com/jme3/bullet/PhysicsSpace.java b/engine/src/jbullet/com/jme3/bullet/PhysicsSpace.java index 6e5aa110d..bbbca345a 100644 --- a/engine/src/jbullet/com/jme3/bullet/PhysicsSpace.java +++ b/engine/src/jbullet/com/jme3/bullet/PhysicsSpace.java @@ -527,7 +527,7 @@ public class PhysicsSpace { List children = ((Node) spatial).getChildren(); for (Iterator it = children.iterator(); it.hasNext();) { Spatial spat = it.next(); - removeAll((Node) spat); + removeAll(spat); } } }