summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 119def0d5..d5fdb161b 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -348,10 +348,9 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
} break;
case 0x08: // AI passenger service
- /** @todo Tells the AI that this engine is designed for
+ /* Tells the AI that this engine is designed for
* passenger services and shouldn't be used for freight. */
- grf_load_byte(&buf);
- ret = true;
+ rvi->ai_passenger_only = grf_load_byte(&buf);
break;
case 0x09: { // Speed (1 unit is 1 kmh)