diff --git a/src/ru/nsu/ccfit/zuev/osu/game/GameplaySlider.java b/src/ru/nsu/ccfit/zuev/osu/game/GameplaySlider.java index fd836646b..1ac652d8a 100644 --- a/src/ru/nsu/ccfit/zuev/osu/game/GameplaySlider.java +++ b/src/ru/nsu/ccfit/zuev/osu/game/GameplaySlider.java @@ -372,7 +372,12 @@ public void init(final GameObjectListener listener, final Scene scene, private PointF getPositionAt(final float percentage, final boolean updateBallAngle, final boolean updateEndArrowRotation) { tmpPoint.set(position); - if (path.pointCount < 2 || percentage >= 1) { + if (path.pointCount < 2) { + return tmpPoint; + } + + if (percentage >= 1) { + tmpPoint.set(pathEndPosition); return tmpPoint; }