From 759187b4cd2ab4c9ed71e8ced977abd81a529f6a Mon Sep 17 00:00:00 2001 From: yugecin Date: Wed, 28 Sep 2016 13:49:33 +0200 Subject: [PATCH] fix #3 (doesn't move to last object) --- src/itdelatrisu/opsu/states/Game.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itdelatrisu/opsu/states/Game.java b/src/itdelatrisu/opsu/states/Game.java index 921f0a38..a471f0bd 100644 --- a/src/itdelatrisu/opsu/states/Game.java +++ b/src/itdelatrisu/opsu/states/Game.java @@ -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);