Fixing a misplaced min function. Thanks, Gnonthgol
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user