                 newLocationB = nil
             }
             
-            pointsBetweenLocations(nextIndex, locationA:newLocationA, locationB:newLocationA, maxDistance:maxDistance)
+            pointsBetweenLocations(nextIndex, locationA:newLocationA, locationB:newLocationB, maxDistance:maxDistance)
         }
     }
     

        let latitude:Double = location.latitude
        let longitude:Double = location.longitude
        
        let item:MProjectItemLocation = MProjectItemLocation(latitude:latitude, longitude:longitude)
        locations!.append(item)
    }

    func getLocations(maxDistance:Double)
    {
        locations = []
        let firstLocation:DPokePassLocation? = model.projectLocations.first
        pointsBetweenLocations(0, locationA:nil, locationB:firstLocation, maxDistance:maxDistance)
    }
}