1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

counter correct index

This commit is contained in:
braktar 2016-07-01 15:06:49 +02:00
parent cb08d19397
commit 899c5bb59c

View file

@ -72,7 +72,7 @@ public class VehicleRoutingAlgorithm {
}
public void incCounter() {
long i = counter++;
long i = ++counter;
long n = nextCounter;
if (i >= n) {
nextCounter = n * 2;