diff --git a/game/server/waypoints/routes.py b/game/server/waypoints/routes.py index 0cf398ca..a50d2e05 100644 --- a/game/server/waypoints/routes.py +++ b/game/server/waypoints/routes.py @@ -50,7 +50,7 @@ def set_position( if waypoint_idx == 0: raise HTTPException(status_code=status.HTTP_403_FORBIDDEN) - waypoint = flight.flight_plan.waypoints[waypoint_idx - 1] + waypoint = flight.flight_plan.waypoints[waypoint_idx] waypoint.position = Point.from_latlng( LatLng(position.lat, position.lng), game.theater.terrain )