fix #3 (doesn't move to last object)

This commit is contained in:
yugecin 2016-09-28 13:49:33 +02:00
parent 2b93805b71
commit 759187b4cd

View File

@ -345,7 +345,7 @@ public class Game extends BasicGameState {
Vec2f autoPoint;
if (objectIndex == 0) {
autoPoint = gameObjects[0].getPointAt(trackPosition);
} else if (objectIndex < beatmap.objects.length - 1) {
} else if (objectIndex < beatmap.objects.length) {
Dancer d = Dancer.instance;
d.update(trackPosition, gameObjects[objectIndex - 1], gameObjects[objectIndex]);
autoPoint = new Vec2f(d.x, d.y);