summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 455fdfb57..d16b034bc 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -2569,7 +2569,7 @@ static ChangeInfoResult RailTypeChangeInfo(uint id, int numinfo, int prop, ByteR
break;
case 0x14: // Speed limit
- buf->ReadWord();
+ rti->max_speed = buf->ReadWord();
break;
case 0x15: // Acceleration model