diff --git a/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java b/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java index 1b2a3023a..70e73709b 100644 --- a/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java +++ b/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java @@ -600,7 +600,7 @@ public class MeshLoader extends DefaultHandler implements AssetLoader { private void startSubmeshName(String indexStr, String nameStr) { int index = Integer.parseInt(indexStr); - if (geoms.size() >= index) { + if (index >= geoms.size()) { logger.log(Level.WARNING, "Submesh name index is larger than number of geometries: {0} >= {1}", new Object[]{index, geoms.size()}); } else {