forked from mirror/OpenTTD
(svn r24053) -Fix (r23947) [FS#5111]: Crash when timetabling a maximum travel speed of 0.
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user