From cdb765724e43b79409a1d0d8fee170d36d142dc7 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 21 Jul 2013 17:17:06 -0400 Subject: [PATCH] fix remaining space calculation This was ported from some C/C++ code that I think was doing it this way for a specific (and probably silly) reason which might not apply anymore. --- src/com/blarg/gdx/graphics/Vertices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/blarg/gdx/graphics/Vertices.java b/src/com/blarg/gdx/graphics/Vertices.java index 60e0596..d5b9798 100644 --- a/src/com/blarg/gdx/graphics/Vertices.java +++ b/src/com/blarg/gdx/graphics/Vertices.java @@ -147,7 +147,7 @@ public class Vertices { } public int remainingSpace() { - return (numVertices - 1) - currentPosition; + return numVertices - currentPosition; } public void getPos(int index, Vector3 out) {