From dafc2afecb0c30ba984e550178ba6b0416d83da8 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Tue, 17 May 2011 13:42:17 +0000 Subject: [PATCH] - fix PhysicsSpace.removeAll() cast bug git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7507 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/bullet/com/jme3/bullet/PhysicsSpace.java | 2 +- engine/src/jbullet/com/jme3/bullet/PhysicsSpace.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } } }