summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/timetable_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/timetable_cmd.cpp b/src/timetable_cmd.cpp
index 5be51c37b..166b817eb 100644
--- a/src/timetable_cmd.cpp
+++ b/src/timetable_cmd.cpp
@@ -118,6 +118,7 @@ CommandCost CmdChangeTimetable(TileIndex tile, DoCommandFlag flags, uint32 p1, u
case MTF_TRAVEL_SPEED:
max_speed = GB(p2, 0, 16);
+ if (max_speed == 0) max_speed = UINT16_MAX; // Disable speed limit.
break;
default: