mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-12 00:07:33 +00:00
Fixed IndexOutOfBoundsException with CCRenderState.copyOf
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user