Fixed IndexOutOfBoundsException with CCRenderState.copyOf

This commit is contained in:
Chicken-Bomes committed 2014-05-23 14:33:17 +10:00
1 parent f1153412c1
commit 8386a982a2
1 file changed
+1 -1
@@ -102,7 +102,7 @@ public class CCRenderState
public static <T> T copyOf(VertexAttribute<T> attr, T src, int length) {
T dst = attr.newArray(length);
arrayCopy(src, 0, dst, 0, length);
arrayCopy(src, 0, dst, 0, ((Object[])src).length);
return dst;
}