This commit is contained in:
PaulStets 2017-10-13 18:41:42 +03:00
parent 17c3bcf3da
commit b9f0cb1c0c

View file

@ -54,9 +54,9 @@ public class PrecalculatedRouteDirection {
this.maxSpeed = parent.maxSpeed; this.maxSpeed = parent.maxSpeed;
boolean inverse = false; boolean inverse = false;
if (s1 > s2) { if (s1 > s2) {
s1 = s1 + s2; int tmp = s1;
s2 = s1 - s2; s1 = s2;
s1 = s1 - s2; s2 = tmp;
inverse = true; inverse = true;
} }
tms = new float[s2 - s1 + 1]; tms = new float[s2 - s1 + 1];