Closed TheHikingClub closed 3 months ago
Fixes #589 by ensuring newWPIndex is not set to 0. If so, change to 1 to ensure prevWP can be set. Found this issue tends to appear when a route loops and has the same start and finish location.
newWPIndex
prevWP
Sorry for the late reply. I was on holiday, so I didn't have the chance to respond and review before now.
Looks good to me! Thanks for fixing this!
Fixes #589 by ensuring
newWPIndex
is not set to 0. If so, change to 1 to ensureprevWP
can be set. Found this issue tends to appear when a route loops and has the same start and finish location.