Fixing a misplaced min function. Thanks, Gnonthgol

This commit is contained in:
DennisOSRM 2012-03-19 14:43:59 +01:00
parent 6d8f99832f
commit af0def36c2

View File

@ -179,7 +179,7 @@ public:
if(!w.isDurationSet) {
if(0 < settings[highway]) {
if(0 < maxspeed)
w.speed = std::min(maxspeed, settings[highway]);
w.speed = maxspeed;
else
w.speed = settings[highway];
} else {