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