Deleted value passing in GetWaypoint function