diff --git a/engine/src/core/com/jme3/scene/Node.java b/engine/src/core/com/jme3/scene/Node.java index e99296a2b..d3e6079d0 100644 --- a/engine/src/core/com/jme3/scene/Node.java +++ b/engine/src/core/com/jme3/scene/Node.java @@ -153,7 +153,7 @@ public class Node extends Spatial implements Savable { // FIXME: Iterating through the children list backwards // to avoid IndexOutOfBoundsException. This is sometimes unreliable, // a more robust solution is needed. - for (int i = children.size(); i >= 0; i--){ + for (int i = children.size()-1; i >= 0; i--){ Spatial child = children.get(i); child.updateLogicalState(tpf); }