Skip to content

Commit 4b86524

Browse files
committed
Proper slash array length
1 parent 17c9c5f commit 4b86524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/progressed/graphics/renders/SlashRenderer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public static void draw(){
5959

6060
while(slashes.size > maxCount) createShader();
6161

62-
float[] slashArray = new float[slashes.size * 4];
63-
for(int i = 0; i < slashes.size; i++){
62+
float[] slashArray = new float[slashIndex * 4];
63+
for(int i = 0; i < slashIndex; i++){
6464
SlashData slash = slashes.get(i);
6565
slashArray[i * 4] = slash.x;
6666
slashArray[i * 4 + 1] = slash.y;

0 commit comments

Comments
 (0)