mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r24053) -Fix (r23947) [FS#5111]: Crash when timetabling a maximum travel speed of 0.
This commit is contained in:
parent
0643a69764
commit
bf3505ca1b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user