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

Merge pull request #255 from braktar/incrCount

counter correct index
This commit is contained in:
Stefan Schröder 2016-07-08 09:53:00 +02:00 committed by GitHub
commit ea1889b15a

View file

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