summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 88a31de73..b3310af10 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -460,7 +460,7 @@ inline int RoadVehicle::GetCurrentMaxSpeed() const
}
}
- return min(max_speed, this->current_order.max_speed * 2);
+ return min(max_speed, this->current_order.GetMaxSpeed() * 2);
}
/**