(svn r24053) -Fix (r23947) [FS#5111]: Crash when timetabling a maximum travel speed of 0.

This commit is contained in:
michi_cc 2012-03-20 13:11:20 +00:00
parent 0643a69764
commit bf3505ca1b
1 changed files with 1 additions and 0 deletions

View File

@ -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: