diff --git a/HeartLibrary/src/main/java/jme3utilities/mesh/CapsuleMesh.java b/HeartLibrary/src/main/java/jme3utilities/mesh/CapsuleMesh.java index 4813b71..8ceccc9 100644 --- a/HeartLibrary/src/main/java/jme3utilities/mesh/CapsuleMesh.java +++ b/HeartLibrary/src/main/java/jme3utilities/mesh/CapsuleMesh.java @@ -274,7 +274,7 @@ public CapsuleMesh(int numRefineSteps, float radius, float height) { } // Sort the indices of vertices on the cylinder's +Y rim: - Integer northIndices[] = mapN2S.keySet().toArray(new Integer[0]); + Integer[] northIndices = mapN2S.keySet().toArray(new Integer[0]); Arrays.sort(northIndices, new Comparator() { @Override public int compare(Integer vi1, Integer vi2) {