diff options
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r-- | src/newgrf_engine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index d93159fe1..04e71c8fb 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -717,7 +717,8 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by case 0x19: { uint max_speed; switch (v->type) { - case VEH_TRAIN: + case VEH_TRAIN: /* FALL THROUGH */ + case VEH_SHIP: max_speed = v->vcache.cached_max_speed; break; |