Fixed an indexing bug introduced by the last change.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7169 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
636339a432
commit
70c1db322f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user