- diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
- index 660b7e476..3db7a92c0 100644
- --- a/src/newgrf_engine.cpp
- +++ b/src/newgrf_engine.cpp
- @@ -693,6 +693,12 @@ static uint32 VehicleGetVariable(Vehicle *v, const VehicleScopeResolver *object,
- return ret;
- }
- + case 0x6A: {
- + if (v->type != VEH_TRAIN) return 0;
- + RailType rt = GetTileRailType(v->tile);
- + return (HasPowerOnRail((RailType)parameter, rt) ? 0x100 : 0) | GetReverseRailTypeTranslation(rt, object->ro.grffile);
- + }
- +
- case 0xFE:
- case 0xFF: {
- uint16 modflags = 0;