This commit is contained in:
vshcherb 2012-06-19 11:31:56 +03:00
parent 2dad9c897b
commit 1f36053279

View file

@ -7,7 +7,7 @@ public class RouteDirectionInfo {
// Constructor to verify average speed always > 0 // Constructor to verify average speed always > 0
public RouteDirectionInfo(float averageSpeed, TurnType turnType) { public RouteDirectionInfo(float averageSpeed, TurnType turnType) {
this.averageSpeed = averageSpeed == 0 ? 1 : averageSpeed; this.averageSpeed = averageSpeed == 0 ? 1 : averageSpeed;
this.turnType = turnType;
} }
public float getAverageSpeed() { public float getAverageSpeed() {